Merge "Correct CSV processing in inventory"

This commit is contained in:
Jenkins 2015-06-12 11:35:24 +00:00 committed by Gerrit Code Review
commit 2ff4562e11

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: