mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Fix verbage around why we are disallowing removing a primary
This commit is contained in:
@@ -33,7 +33,7 @@ class Command(BaseCommandInstance):
|
|||||||
|
|
||||||
# Sanity check: Do not remove the primary instance.
|
# Sanity check: Do not remove the primary instance.
|
||||||
if instance.primary:
|
if instance.primary:
|
||||||
raise CommandError('I cowardly refuse to remove the primary instance %s.' % instance_str(instance))
|
raise CommandError('Can not remove primary instance %s. Another instance must be promoted to primary first.' % instance_str(instance))
|
||||||
|
|
||||||
# Remove the instance.
|
# Remove the instance.
|
||||||
instance.delete()
|
instance.delete()
|
||||||
|
|||||||
Reference in New Issue
Block a user