Merge "'display-name' is not used in snapshot_manage"

This commit is contained in:
Jenkins 2016-07-06 23:47:45 +00:00 committed by Gerrit Code Review
commit 11aa26bef9

View File

@ -119,10 +119,7 @@ class SnapshotManageController(wsgi.Controller):
snapshot_parameters['metadata'] = snapshot.get('metadata', None)
snapshot_parameters['description'] = snapshot.get('description', None)
# NOTE(wanghao) if name in request body, we are overriding the 'name'
snapshot_parameters['name'] = snapshot.get('name',
snapshot.get('display_name')
)
snapshot_parameters['name'] = snapshot.get('name')
try:
new_snapshot = self.volume_api.manage_existing_snapshot(