From: Nikos Skalkotos Date: Sat, 3 Aug 2013 13:11:15 +0000 (+0300) Subject: Fix a typo in one of the input options X-Git-Tag: 0.5~1^2~2 X-Git-Url: https://code.grnet.gr/git/snf-image-creator/commitdiff_plain/419c8d7b894184d22fce332ab372ba5a8ebc2c5b Fix a typo in one of the input options --print-sysprep should be --print-syspreps --- diff --git a/image_creator/main.py b/image_creator/main.py index 8fecf1b..c328146 100644 --- a/image_creator/main.py +++ b/image_creator/main.py @@ -108,7 +108,7 @@ def parse_options(input_args): "authenticate against a cloud when " "uploading/registering images") - parser.add_option("--print-sysprep", dest="print_sysprep", default=False, + parser.add_option("--print-syspreps", dest="print_syspreps", default=False, help="print the enabled and disabled system preparation " "operations for this input media", action="store_true") @@ -195,8 +195,8 @@ def image_creator(): options = parse_options(sys.argv[1:]) if options.outfile is None and not options.upload and not \ - options.print_sysprep and not options.print_sysprep_params: - raise FatalError("At least one of `-o', `-u', `--print-sysprep' or " + options.print_syspreps and not options.print_sysprep_params: + raise FatalError("At least one of `-o', `-u', `--print-syspreps' or " "`--print-sysprep-params' must be set") if options.silent: @@ -279,7 +279,7 @@ def image_creator(): for sysprep in options.enabled_syspreps: image.os.enable_sysprep(image.os.get_sysprep_by_name(sysprep)) - if options.print_sysprep: + if options.print_syspreps: image.os.print_syspreps() out.output() diff --git a/image_creator/os_type/windows.py b/image_creator/os_type/windows.py index 4f427d6..a82f510 100644 --- a/image_creator/os_type/windows.py +++ b/image_creator/os_type/windows.py @@ -208,7 +208,7 @@ class Windows(OSBase): """Install the appropriate KMS client setup key to the image to convert it to a KMS client. Computers that are running volume licensing editions of Windows 8, Windows Server 2012, Windows 7, Windows Server - 2008 R2, Windows Vista, and Windows Server 2008 are, by default, KMS + 2008 R2, Windows Vista, and Windows Server 2008 are by default KMS clients with no additional configuration needed. """ try: