Fix a warning message in linux fix_acpid sysprep
authorNikos Skalkotos <skalkoto@grnet.gr>
Mon, 25 Jun 2012 13:04:07 +0000 (16:04 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Mon, 25 Jun 2012 13:04:07 +0000 (16:04 +0300)
image_creator/os_type/linux.py

index 89d5e32..7597703 100644 (file)
@@ -108,9 +108,9 @@ class Linux(Unix):
             elif event.strip() == ".*":
                 self.out.warn(
                     "Found action `.*'. Don't know how to handle this. " \
             elif event.strip() == ".*":
                 self.out.warn(
                     "Found action `.*'. Don't know how to handle this. " \
-                    "Please edit \%s' image file manually to make the " \
+                    "Please edit `%s' image file manually to make the " \
                     "system immediatelly shutdown when an power button acpi " \
                     "system immediatelly shutdown when an power button acpi " \
-                    "event occures" % action)
+                    "event occures." % action.strip().split()[0])
                 return
 
     @sysprep()
                 return
 
     @sysprep()