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:
parent
80a6f22c0c
commit
05f56c805a
@ -34,7 +34,7 @@ class Command(BaseCommandInstance):
|
|||||||
super(Command, self).handle(*args, **options)
|
super(Command, self).handle(*args, **options)
|
||||||
|
|
||||||
# You can only promote/demote if your license allows HA
|
# 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')
|
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.
|
# Is there an existing record for this machine? If so, retrieve that record and look for issues.
|
||||||
|
Loading…
Reference in New Issue
Block a user