This branch adds the instance 'display name' (nickname) to attach the attache volume to instance form.
This commit is contained in:
commit
03dce1929d
|
@ -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')]
|
||||
|
|
Loading…
Reference in New Issue