Correct CSV processing in inventory
Late changes due to suggestions partially broke CSV processing such that values were not properly evaluated thus resulting in values not being included in output. Change-Id: I90a29741149d7718175fceb0f77071e4ce13ef03
This commit is contained in:
parent
e05809c07e
commit
42d773d321
@ -137,7 +137,7 @@ def _prepare_inventory():
|
|||||||
def _val_or_none(array, location):
|
def _val_or_none(array, location):
|
||||||
"""Return any value that has a length"""
|
"""Return any value that has a length"""
|
||||||
try:
|
try:
|
||||||
if not array[location]:
|
if len(array[location]) > 0:
|
||||||
return array[location]
|
return array[location]
|
||||||
return None
|
return None
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user