Skip to content

Commit

Permalink
Corrects typo in instance models and service
Browse files Browse the repository at this point in the history
The get_default_configuration_template() function in Instance was
misspelled as 'configration'. The function is also called from the
InstanceController class.

Closes-Bug: #1331135
Change-Id: I95416b0c5d49a46d19edd548c36ec619f580a8e0
  • Loading branch information
Theron Voran committed Jun 26, 2014
1 parent f2967bd commit 83c7647
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion trove/instance/models.py
Expand Up @@ -701,7 +701,7 @@ def get_flavor(self):
client = create_nova_client(self.context)
return client.flavors.get(self.flavor_id)

def get_default_configration_template(self):
def get_default_configuration_template(self):
flavor = self.get_flavor()
LOG.debug("flavor: %s" % flavor)
config = template.SingleInstanceConfigTemplate(
Expand Down
2 changes: 1 addition & 1 deletion trove/instance/service.py
Expand Up @@ -273,7 +273,7 @@ def configuration(self, req, tenant_id, id):
context = req.environ[wsgi.CONTEXT_KEY]
instance = models.Instance.load(context, id)
LOG.debug("server: %s" % instance)
config = instance.get_default_configration_template()
config = instance.get_default_configuration_template()
LOG.debug("default config for instance is: %s" % config)
return wsgi.Result(views.DefaultConfigurationView(
config).data(), 200)

0 comments on commit 83c7647

Please sign in to comment.