The auto-discovery function was buggy and returned a junk bmap file name if no
bmap files was found.
Change-Id: I2ab3db14dcccd72e687e6afb8e3cfcaa9c827452
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
try:
bmap_obj = TransRead.TransRead(bmap_path)
bmap_obj.close()
- break
+ return bmap_path
except TransRead.Error as err:
pass
if ext == '':
break
- return bmap_path
+ return None
def copy_command_open_all(args, log):
""" Open the image/bmap/destination files for the "copy" command. Returns a