Remove dead code
The find_cmd is not being used anywhere so remove it. Change-Id: Ib3cc664b7af049e236e7662eee4890b1f40de646 Signed-off-by: Chuck Short <chucks@redhat.com>
This commit is contained in:
parent
7c3aed604e
commit
c9a3a4bf0f
|
@ -60,18 +60,6 @@ class Tools(object):
|
|||
self.logger.error("stderr: {}".format(stderr))
|
||||
return output_dict
|
||||
|
||||
# Find Command on host
|
||||
def find_cmd(self, cmd):
|
||||
_cmd = "which %s" % cmd
|
||||
self.logger.debug('Find Command : Command : %s' % _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)
|
||||
return False
|
||||
else:
|
||||
return command.strip()
|
||||
|
||||
# Create directory for results
|
||||
def create_results_dir(self, *args):
|
||||
the_directory = '/'.join(args)
|
||||
|
|
Loading…
Reference in New Issue