projects
/
snf-image-creator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0db22ea
)
Fix a bug in linux sysprep_* methods
author
Nikos Skalkotos
<skalkoto@grnet.gr>
Fri, 16 Mar 2012 15:36:23 +0000
(17:36 +0200)
committer
Nikos Skalkotos
<skalkoto@grnet.gr>
Fri, 16 Mar 2012 15:36:23 +0000
(17:36 +0200)
The parameter order when calling guestfs.write was incorrect.
image_creator/os_type/linux.py
patch
|
blob
|
history
diff --git
a/image_creator/os_type/linux.py
b/image_creator/os_type/linux.py
index
724e902
..
cc7837b
100644
(file)
--- 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"