From f8fc424ee56bc92d16cbb4cc1720a6de5deccb99 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Mon, 1 Jun 2015 08:20:15 -0400 Subject: [PATCH] fixed calling of method that never existed When setting an instance as the primary instance project directory creation may be necessary. Do not perform this action if instance is secondary. --- awx/main/management/commands/update_instance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/management/commands/update_instance.py b/awx/main/management/commands/update_instance.py index e27266f9cd..4183feec03 100644 --- a/awx/main/management/commands/update_instance.py +++ b/awx/main/management/commands/update_instance.py @@ -54,7 +54,8 @@ class Command(BaseCommandInstance): instance.save() # If this is a primary instance, update projects. - self.update_projects_if_primary(instance) + if self.is_option_primary(): + self.update_projects(instance) # Done! print('Successfully updated instance role %s' % instance_str(instance))