This commit is contained in:
brent s. 2020-05-18 05:53:42 -04:00
parent 8cb29762a7
commit bdcbc09dc7
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
1 changed files with 3 additions and 3 deletions

View File

@ -65,9 +65,9 @@ class RASvc(object):
logger.warning('Could not execute {0}; returned status {1}'.format(' '.join(cmd),
cmd_exec.returncode))
for i in ('stdout', 'stderr'):
s = getattr(cmd_exec, i).decode('utf-8')
if s.strip() != '':
logger.warning('{0}: {1}'.format(i.upper(), s))
s = getattr(cmd_exec, i)
if s and s.decode('utf-8').strip() != '':
logger.warning('{0}: {1}'.format(i.upper(), s.decode('utf-8')))
return(None)

def _get_manager(self):