Merge "Update volume's 'updated_at' when accept transfer"

This commit is contained in:
Zuul 2018-01-18 06:46:09 +00:00 committed by Gerrit Code Review
commit 5d761327da

View File

@ -5478,8 +5478,7 @@ def transfer_accept(context, transfer_id, user_id, project_id):
'status': 'awaiting-transfer'}
update = {'status': 'available',
'user_id': user_id,
'project_id': project_id,
'updated_at': models.Volume.updated_at}
'project_id': project_id}
if not conditional_update(context, models.Volume, update, expected):
msg = (_('Transfer %(transfer_id)s: Volume id %(volume_id)s '
'expected in awaiting-transfer state.')