summaryrefslogtreecommitdiffstats
path: root/modules/reboot.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-24 14:52:43 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-24 14:52:43 -0400
commit412671ee48804867fc6707fa12409ae9365f5ea3 (patch)
tree2a29b9acf28b8e372d54504dc7c7d6a9890f7ae9 /modules/reboot.py
parent731190a1b414e3d5b31e6de5c80772d6f532f658 (diff)
downloadthird_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-xmodules/reboot.py4
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()