summaryrefslogtreecommitdiff
path: root/tuskar_ui/infrastructure/roles/views.py
diff options
context:
space:
mode:
authorAna Krivokapic <akrivoka@redhat.com>2015-07-03 23:57:52 +0200
committerAna Krivokapic <akrivoka@redhat.com>2015-07-03 23:57:52 +0200
commita5c32aea36198ea2d15309cd8d7cd45df7f27571 (patch)
treee916194c5785150346192b9a612092ac06eeda9d /tuskar_ui/infrastructure/roles/views.py
parent99201028f74851cc14360107c289812e09d06d17 (diff)
downloadtuskar-ui-a5c32aea36198ea2d15309cd8d7cd45df7f27571.tar.gz
Properly handle provisioning images
Handling of provisioning images has changed on the Tuskar side; this fix brings Tukskar-UI in line with these changes. * There used to be separate images for all the deployment roles. This is no longer the case and all the roles now use the same image, 'overcloud-full'. As the result, the way the relationship between images and roles is displayed on the Provisioning Images page needs to be updated. * Related to the previous point, test data needed updating to reflect that. * Images associated with roles are now saved by name in the Tuskar plan. This fix ensures that the UI saves and retrieves images by name and not by UUID, like it used to do. Change-Id: I11b73fcaed45200dfbdb72dc3ab9a27afb67a31d
Diffstat (limited to 'tuskar_ui/infrastructure/roles/views.py')
-rw-r--r--tuskar_ui/infrastructure/roles/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tuskar_ui/infrastructure/roles/views.py b/tuskar_ui/infrastructure/roles/views.py
index 78a73065..b5cb5801 100644
--- a/tuskar_ui/infrastructure/roles/views.py
+++ b/tuskar_ui/infrastructure/roles/views.py
@@ -143,7 +143,7 @@ class UpdateView(workflows.WorkflowView, views.StackMixin, views.RoleMixin):
role_flavor = '' if role_flavor is None else role_flavor.name
role_image = role.image(plan)
- role_image = '' if role_image is None else role_image.id
+ role_image = '' if role_image is None else role_image.name
free_nodes = len(api.node.Node.list(self.request, associated=False,
maintenance=False))