| |
@@ -58,7 +58,7 @@
|
| |
install = [ "/usr/bin/yum", "-y", "install" ] + rpms
|
| |
|
| |
try:
|
| |
- subprocess.check_call(install)
|
| |
+ subprocess.check_call(install, stdout=sys.stderr.fileno())
|
| |
except subprocess.CalledProcessError:
|
| |
raise RuntimeError("could not install rpms: {0}".format(rpms))
|
| |
|
| |
The 'yum' command writes some output to stdout. This interferes
with the inventory script's output of JSON on its stdout. So
force all yum output to stderr. This is helpful for those invoking
the scripts as well.