mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 17:28:51 -03:30
Merge pull request #2302 from AlanCoding/verbose_data
create_preload_data: log no-op operation, remove unnecessary credential
This commit is contained in:
@@ -15,6 +15,8 @@ class Command(BaseCommand):
|
|||||||
def handle(self, *args, **kwargs):
|
def handle(self, *args, **kwargs):
|
||||||
# Sanity check: Is there already an organization in the system?
|
# Sanity check: Is there already an organization in the system?
|
||||||
if Organization.objects.count():
|
if Organization.objects.count():
|
||||||
|
print('An organization is already in the system, exiting.')
|
||||||
|
print('(changed: False)')
|
||||||
return
|
return
|
||||||
|
|
||||||
# Create a default organization as the first superuser found.
|
# Create a default organization as the first superuser found.
|
||||||
@@ -54,3 +56,4 @@ class Command(BaseCommand):
|
|||||||
jt.credentials.add(c)
|
jt.credentials.add(c)
|
||||||
print('Default organization added.')
|
print('Default organization added.')
|
||||||
print('Demo Credential, Inventory, and Job Template added.')
|
print('Demo Credential, Inventory, and Job Template added.')
|
||||||
|
print('(changed: True)')
|
||||||
|
|||||||
Reference in New Issue
Block a user