diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-24 14:52:43 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-24 14:52:43 -0400 |
commit | 412671ee48804867fc6707fa12409ae9365f5ea3 (patch) | |
tree | 2a29b9acf28b8e372d54504dc7c7d6a9890f7ae9 /modules/reboot.py | |
parent | 731190a1b414e3d5b31e6de5c80772d6f532f658 (diff) | |
download | third_party-func-412671ee48804867fc6707fa12409ae9365f5ea3.tar.gz third_party-func-412671ee48804867fc6707fa12409ae9365f5ea3.tar.xz third_party-func-412671ee48804867fc6707fa12409ae9365f5ea3.zip |
Package the subprocess module so that we can use it on EL4.
Diffstat (limited to 'modules/reboot.py')
-rwxr-xr-x | modules/reboot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/reboot.py b/modules/reboot.py index ddc7651..8772b8f 100755 --- a/modules/reboot.py +++ b/modules/reboot.py @@ -11,7 +11,7 @@ from modules import func_module -import subprocess +import sub_process class Reboot(func_module.FuncModule): @@ -22,7 +22,7 @@ class Reboot(func_module.FuncModule): func_module.FuncModule.__init__(self) def reboot(self, when='now', message=''): - return subprocess.call(["/sbin/shutdown", '-r', when, message]) + return sub_process.call(["/sbin/shutdown", '-r', when, message]) methods = Reboot() |