Fix tools.find_cmd() using old run_cmd() output
This bug was introduced with YODA changing run_cmd() to output a dict of stdout,err, and return code. Since only conmon uses this function it wasn't encountered during testing. Change-Id: Ie7561d4bd9c0a076bfb86730c588b3d3f96b677b
This commit is contained in:
parent
2960b7fa1e
commit
88c1e78901
@ -66,7 +66,7 @@ class Tools(object):
|
||||
def find_cmd(self, cmd):
|
||||
_cmd = "which %s" % cmd
|
||||
self.logger.debug('Find Command : Command : %s' % _cmd)
|
||||
command = self.run_cmd(_cmd)
|
||||
command = self.run_cmd(_cmd)['stdout']
|
||||
if command is None:
|
||||
self.logger.error("Unable to find %s" % cmd)
|
||||
raise Exception("Unable to find command : '%s'" % cmd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user