This branch adds the instance 'display name' (nickname) to attach the attache volume to instance form.

This commit is contained in:
Jake Dahn 2011-05-04 16:38:23 +00:00 committed by Tarmac
commit 03dce1929d
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ def get_instance_type_choices():
return rv
def get_instance_choices(project):
choices = [(i.id, "%s (%s)" % (i.id, i.displayName)
choices = [(i.id, "%s (%s)" % (i.id, i.displayName))
for i in project.get_instances()]
if not len(choices):
choices = [('', 'none available')]