mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
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.
This commit is contained in:
parent
e23539e69b
commit
f8fc424ee5
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user