1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Logic should check for the condition where HA is NOT enabled

This commit is contained in:
Matthew Jones 2015-06-26 15:28:41 -04:00
parent 80a6f22c0c
commit 05f56c805a

View File

@ -34,7 +34,7 @@ class Command(BaseCommandInstance):
super(Command, self).handle(*args, **options)
# You can only promote/demote if your license allows HA
if feature_enabled('ha'):
if not feature_enabled('ha'):
raise CommandError('Your Tower license does not permit promoting a secondary instance')
# Is there an existing record for this machine? If so, retrieve that record and look for issues.