1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

fix so enabled value is case insensitive

This commit is contained in:
Gabe Muniz 2019-06-11 17:00:19 -04:00 committed by Ryan Petrello
parent 793e78d9c0
commit bd93d97a60
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -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: