Skip to content
Snippets Groups Projects
Commit 3d083be5 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix a bug in linux sysprep_* methods

The parameter order when calling guestfs.write was incorrect.
parent 0db22eac
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment