mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-14 15:58:38 -05:00
fix inventory import bug with enabled_var
This commit is contained in:
@@ -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):
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user