mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 15:08:03 -03:30
log no-op operation and changed status
This commit is contained in:
parent
0bb1b0ed45
commit
5900af726b
@ -15,6 +15,8 @@ class Command(BaseCommand):
|
||||
def handle(self, *args, **kwargs):
|
||||
# Sanity check: Is there already an organization in the system?
|
||||
if Organization.objects.count():
|
||||
print('An organization is already in the system, exiting.')
|
||||
print('(changed: False)')
|
||||
return
|
||||
|
||||
# Create a default organization as the first superuser found.
|
||||
@ -54,3 +56,4 @@ class Command(BaseCommand):
|
||||
jt.credentials.add(c)
|
||||
print('Default organization added.')
|
||||
print('Demo Credential, Inventory, and Job Template added.')
|
||||
print('(changed: True)')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user