Fixed bug in read_metadata.py: path to inventory file was not taken into account.
This commit is contained in:
parent
80e0ca99d7
commit
180cd25b51
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user