summaryrefslogtreecommitdiff
path: root/tuskar_ui/infrastructure/images/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/images/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/images/views.py')
-rw-r--r--tuskar_ui/infrastructure/images/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tuskar_ui/infrastructure/images/views.py b/tuskar_ui/infrastructure/images/views.py
index b18e0634..198fdf43 100644
--- a/tuskar_ui/infrastructure/images/views.py
+++ b/tuskar_ui/infrastructure/images/views.py
@@ -57,7 +57,7 @@ class IndexView(infrastructure_views.ItemCountMixin,
plan = tuskar_api.tuskar.Plan.get_the_plan(self.request)
for image in images:
- image.role = tuskar_api.tuskar.Role.get_by_image(
+ image.roles = tuskar_api.tuskar.Role.get_by_image(
self.request, plan, image)
return images