It seems like there is probably a better (or at very least less expensive) way to do this than to incur the cost of a subprocess.
I suspect a.) change 'yum' to be invoked with '--quiet' or the like b.) close and re-open stdout or something like that. yum is probably using 'isatty' to change its behavior. -- https://code.launchpad.net/~ajorgens/cloud-init/+git/cloud-init/+merge/325512 Your team cloud-init commiters is requested to review the proposed merge of ~ajorgens/cloud-init:pipe-cat into cloud-init:master. _______________________________________________ Mailing list: https://launchpad.net/~cloud-init-dev Post to : cloud-init-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~cloud-init-dev More help : https://help.launchpad.net/ListHelp