diff options
-rw-r--r-- | openstack_dashboard/static/app/core/openstack-service-api/glance.service.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openstack_dashboard/static/app/core/openstack-service-api/glance.service.js b/openstack_dashboard/static/app/core/openstack-service-api/glance.service.js index db14f3f2f..a0b931982 100644 --- a/openstack_dashboard/static/app/core/openstack-service-api/glance.service.js +++ b/openstack_dashboard/static/app/core/openstack-service-api/glance.service.js @@ -47,6 +47,8 @@ getResourceTypes: getResourceTypes }; + var READONLY_PROPERTIES = ['os_hash_algo', 'os_hash_value']; + return service; /////////////// @@ -278,6 +280,10 @@ * @returns {Object} The result of the API call */ function editImageProps(id, updated, removed) { + angular.forEach(READONLY_PROPERTIES, function(key) { + delete updated[key]; + }); + return apiService.patch( '/api/glance/images/' + id + '/properties/', { |