diff --git a/ironic_ui/static/dashboard/admin/ironic/enroll-node/enroll-node.controller.js b/ironic_ui/static/dashboard/admin/ironic/enroll-node/enroll-node.controller.js index fc3ad73a..dfdd4762 100644 --- a/ironic_ui/static/dashboard/admin/ironic/enroll-node/enroll-node.controller.js +++ b/ironic_ui/static/dashboard/admin/ironic/enroll-node/enroll-node.controller.js @@ -27,6 +27,7 @@ '$rootScope', '$modalInstance', 'horizon.app.core.openstack-service-api.ironic', + 'horizon.app.core.openstack-service-api.glance', 'horizon.dashboard.admin.ironic.enroll-node.service', '$log' ]; @@ -34,11 +35,13 @@ function EnrollNodeController($rootScope, $modalInstance, ironic, + glance, enrollNodeService, $log) { var ctrl = this; ctrl.drivers = null; + ctrl.images = null; ctrl.loadingDriverProperties = false; // Object containing the set of properties associated with the currently // selected driver @@ -57,6 +60,7 @@ function init() { loadDrivers(); + getImages(); } /** @@ -70,6 +74,17 @@ }); } + /** + * Get the list of images from Glance + * + * @return {void} + */ + function getImages() { + glance.getImages().then(function(response) { + ctrl.images = response.data.items; + }); + } + /** * Get the properties associated with a specified driver * diff --git a/ironic_ui/static/dashboard/admin/ironic/enroll-node/enroll-node.html b/ironic_ui/static/dashboard/admin/ironic/enroll-node/enroll-node.html index aadc9488..3166182a 100644 --- a/ironic_ui/static/dashboard/admin/ironic/enroll-node/enroll-node.html +++ b/ironic_ui/static/dashboard/admin/ironic/enroll-node/enroll-node.html @@ -5,9 +5,20 @@