Fix a typo in one of the input options
authorNikos Skalkotos <skalkoto@grnet.gr>
Sat, 3 Aug 2013 13:11:15 +0000 (16:11 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Sat, 3 Aug 2013 13:14:06 +0000 (16:14 +0300)
--print-sysprep should be --print-syspreps

image_creator/main.py
image_creator/os_type/windows.py

index 8fecf1b..c328146 100644 (file)
@@ -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()
 
index 4f427d6..a82f510 100644 (file)
@@ -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: