git://git.onelab.eu
/
pcucontrol.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enhance, simplify and beautify DRAC & HPiLO support with expect scripts
[pcucontrol.git]
/
pcucontrol
/
util
/
command.py
diff --git
a/pcucontrol/util/command.py
b/pcucontrol/util/command.py
index
42e00a9
..
74b5fae
100644
(file)
--- a/
pcucontrol/util/command.py
+++ b/
pcucontrol/util/command.py
@@
-91,7
+91,11
@@
class CMD:
def run(self, cmd, timeout=COMMAND_TIMEOUT*2):
def run(self, cmd, timeout=COMMAND_TIMEOUT*2):
- s = Sopen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
+ s = Sopen(cmd, shell=True,
+ stdin=subprocess.PIPE,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ close_fds=True)
self.s = s
(f_in, f_out, f_err) = (s.stdin, s.stdout, s.stderr)
lout, lin, lerr = select([f_out], [], [f_err], timeout)
self.s = s
(f_in, f_out, f_err) = (s.stdin, s.stdout, s.stderr)
lout, lin, lerr = select([f_out], [], [f_err], timeout)