mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
Fix verbage around why we are disallowing removing a primary
This commit is contained in:
parent
40f0548fe7
commit
237a661912
@ -33,7 +33,7 @@ class Command(BaseCommandInstance):
|
||||
|
||||
# Sanity check: Do not remove the primary instance.
|
||||
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.
|
||||
instance.delete()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user