From 5900af726b676767736c48202fcf29e4fdeb509d Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Fri, 21 Sep 2018 15:23:02 -0400 Subject: [PATCH] log no-op operation and changed status --- awx/main/management/commands/create_preload_data.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/main/management/commands/create_preload_data.py b/awx/main/management/commands/create_preload_data.py index d171f20544..1bf9f5c30b 100644 --- a/awx/main/management/commands/create_preload_data.py +++ b/awx/main/management/commands/create_preload_data.py @@ -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)')