Use string for releasever not int (#1067746)

environmental variables need to be strings and there is no compelling
reason to force this to an int.

Related: rhbz#1067746
This commit is contained in:
Brian C. Lane 2014-02-28 13:35:03 -08:00
parent d2de389cba
commit cee25952d4
1 changed files with 2 additions and 2 deletions

View File

@ -393,7 +393,7 @@ class KernelInfo(object):
def make_appliance(disk_img, name, template, outfile, networks=None, ram=1024,
vcpus=1, arch=None, title="Linux", project="Linux",
releasever=17):
releasever="7.0"):
"""
Generate an appliance description file
@ -823,7 +823,7 @@ if __name__ == '__main__':
help="Substituted for @TITLE@ in bootloader config files" )
parser.add_argument( "--project", default="Red Hat Enterprise Linux",
help="substituted for @PROJECT@ in bootloader config files" )
parser.add_argument( "--releasever", type=int, default=7,
parser.add_argument( "--releasever", default="7.0",
help="substituted for @VERSION@ in bootloader config files" )
parser.add_argument( "--volid", default=None, help="volume id")
parser.add_argument( "--squashfs_args",