fix this
This commit is contained in:
parent
8cb29762a7
commit
bdcbc09dc7
@ -65,9 +65,9 @@ class RASvc(object):
|
|||||||
logger.warning('Could not execute {0}; returned status {1}'.format(' '.join(cmd),
|
logger.warning('Could not execute {0}; returned status {1}'.format(' '.join(cmd),
|
||||||
cmd_exec.returncode))
|
cmd_exec.returncode))
|
||||||
for i in ('stdout', 'stderr'):
|
for i in ('stdout', 'stderr'):
|
||||||
s = getattr(cmd_exec, i).decode('utf-8')
|
s = getattr(cmd_exec, i)
|
||||||
if s.strip() != '':
|
if s and s.decode('utf-8').strip() != '':
|
||||||
logger.warning('{0}: {1}'.format(i.upper(), s))
|
logger.warning('{0}: {1}'.format(i.upper(), s.decode('utf-8')))
|
||||||
return(None)
|
return(None)
|
||||||
|
|
||||||
def _get_manager(self):
|
def _get_manager(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user