fix inventory import bug with enabled_var

This commit is contained in:
AlanCoding
2017-11-28 14:26:38 -05:00
parent 5602b5d2d7
commit 2c06bfc9ce
2 changed files with 36 additions and 1 deletions
@@ -347,7 +347,12 @@ class Command(BaseCommand):
enabled = bool(unicode(enabled_value) == unicode(enabled))
else:
enabled = bool(enabled)
return enabled
if enabled is default:
return None
elif isinstance(enabled, bool):
return enabled
else:
raise NotImplementedError('Value of enabled {} not understood.'.format(enabled))
def load_inventory_from_database(self):
'''