Fixed bug in read_metadata.py: path to inventory file was not taken into account.

This commit is contained in:
Ludger Küperkoch 2016-09-20 14:30:24 +02:00
parent 21042bc071
commit ee2f462c92

View File

@ -183,7 +183,8 @@ def read_metadata(path_to_inventory):
"RESP-file found!") "RESP-file found!")
elif invtype == 'dless': # prevent multiple read of large dlsv elif invtype == 'dless': # prevent multiple read of large dlsv
if len(inv[invtype]) == 1: if len(inv[invtype]) == 1:
robj = Parser(inv[invtype][0]) fullpath_inv = os.path.join(path_to_inventory, inv[invtype][0])
robj = Parser(fullpath_inv)
else: else:
robj = inv[invtype] robj = inv[invtype]
else: else: