From bd93d97a60fc219cb0a881c760c5efe525f5248c Mon Sep 17 00:00:00 2001 From: Gabe Muniz Date: Tue, 11 Jun 2019 17:00:19 -0400 Subject: [PATCH] fix so enabled value is case insensitive --- awx/main/management/commands/inventory_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/management/commands/inventory_import.py b/awx/main/management/commands/inventory_import.py index 83a27ed3ea..6ae7ba69d5 100644 --- a/awx/main/management/commands/inventory_import.py +++ b/awx/main/management/commands/inventory_import.py @@ -310,7 +310,7 @@ class Command(BaseCommand): if enabled is not default: enabled_value = getattr(self, 'enabled_value', None) if enabled_value is not None: - enabled = bool(str(enabled_value) == str(enabled)) + enabled = bool(str(enabled_value).lower() == str(enabled).lower()) else: enabled = bool(enabled) if enabled is default: