Merge "Save object after updating for attachment_complete"

This commit is contained in:
Jenkins 2017-08-15 20:30:37 +00:00 committed by Gerrit Code Review
commit 4dd36f9efb

View File

@ -279,7 +279,9 @@ class AttachmentsController(wsgi.Controller):
context,
attachment_ref.volume_id)
attachment_ref.update({'attach_status': 'attached'})
attachment_ref.save()
volume_ref.update({'status': 'in-use', 'attach_status': 'attached'})
volume_ref.save()
def create_resource(ext_mgr):