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:
Chris Meyers 2015-06-01 08:20:15 -04:00
parent e23539e69b
commit f8fc424ee5

View File

@ -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))