diff options
author | James Bowes <jbowes@redhat.com> | 2007-09-29 14:08:37 -0400 |
---|---|---|
committer | James Bowes <jbowes@redhat.com> | 2007-09-29 14:08:37 -0400 |
commit | e153b175bff255b9af212f6d969cb75503ab2f14 (patch) | |
tree | af340f21b7eefcbd59662680410c8c736caba3a3 /modules | |
parent | 99069f42f71f00cd0b44b59e6627657409569b6b (diff) | |
download | third_party-func-e153b175bff255b9af212f6d969cb75503ab2f14.tar.gz third_party-func-e153b175bff255b9af212f6d969cb75503ab2f14.tar.xz third_party-func-e153b175bff255b9af212f6d969cb75503ab2f14.zip |
Fix bad indentation in minion, modules and overlord
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/hardware.py | 12 | ||||
-rwxr-xr-x | modules/process.py | 2 | ||||
-rwxr-xr-x | modules/virt.py | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/modules/hardware.py b/modules/hardware.py index 50dd705..e2455d1 100755 --- a/modules/hardware.py +++ b/modules/hardware.py @@ -50,13 +50,13 @@ class HardwareModule(func_module.FuncModule): label = data[0] for d in data: if d == '': - results[label] = current - current = "" - label = "" + results[label] = current + current = "" + label = "" else: - if label == "": - label = d - current = current + d + if label == "": + label = d + current = current + d return results diff --git a/modules/process.py b/modules/process.py index 78e5aea..94a0240 100755 --- a/modules/process.py +++ b/modules/process.py @@ -57,7 +57,7 @@ class ProcessModule(func_module.FuncModule): def kill(self,pid,signal="TERM"): if pid == "0": - raise codes.FuncException("Killing pid group 0 not permitted") + raise codes.FuncException("Killing pid group 0 not permitted") if signal == "": # this is default /bin/kill behaviour, it claims, but enfore it anyway signal = "-TERM" diff --git a/modules/virt.py b/modules/virt.py index 300ec89..7162a36 100755 --- a/modules/virt.py +++ b/modules/virt.py @@ -52,7 +52,7 @@ class FuncLibvirtConnection(): conn = libvirt.open("qemu:///system") if not conn: - raise codes.FuncException("hypervisor connection failure") + raise codes.FuncException("hypervisor connection failure") self.conn = conn |