theforeman / obal

packaging wrapper using ansible
GNU General Public License v2.0
9 stars 13 forks source link

Fix error output from CalledProcessError #360

Closed ehelms closed 1 year ago

ehelms commented 1 year ago

Fixes:

AttributeError: 'CalledProcessError' object has no attribute 'stdout'

evgeni commented 1 year ago

.stdout/.stderr exist since Python 3.5…, and using .output (which is the same as .stdout) would be losing stderr things (at least on 3.5+)?

evgeni commented 1 year ago

OTOH, we use .output everywhere else, so :woman_shrugging: