From: Nikos Skalkotos Date: Fri, 16 Mar 2012 15:36:23 +0000 (+0200) Subject: Fix a bug in linux sysprep_* methods X-Git-Tag: v0.1~132 X-Git-Url: https://code.grnet.gr/git/snf-image-creator/commitdiff_plain/3d083be5a9b6e45a6fd98692926d07440b9b6860 Fix a bug in linux sysprep_* methods The parameter order when calling guestfs.write was incorrect. --- diff --git a/image_creator/os_type/linux.py b/image_creator/os_type/linux.py index 724e902..cc7837b 100644 --- a/image_creator/os_type/linux.py +++ b/image_creator/os_type/linux.py @@ -34,9 +34,9 @@ class Linux(Unix): '\"Power button pressed\"' if self.g.is_file('/etc/acpi/powerbtn.sh'): - self.g.write(action, '/etc/acpi/powerbtn.sh') + self.g.write('/etc/acpi/powerbtn.sh', action) elif self.g.is_file('/etc/acpi/actions/power.sh'): - self.g.write(actions, '/etc/acpi/actions/power.sh') + self.g.write('/etc/acpi/actions/power.sh', action) else: print "Warning: No acpid action file found"