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:
Julia Kreger 2015-06-11 15:43:31 -04:00
parent e05809c07e
commit 42d773d321

View File

@ -137,7 +137,7 @@ def _prepare_inventory():
def _val_or_none(array, location):
"""Return any value that has a length"""
try:
if not array[location]:
if len(array[location]) > 0:
return array[location]
return None
except IndexError: