Update volume's 'updated_at' when accept transfer
When accept volume transfer, the volume object's 'user_id', 'project_id' and 'status' are all updated, 'updated_at' should be refreshed as well. Change-Id: I0ab094a961f0911e860d986c3db28a4e6c75a9f6
This commit is contained in:
parent
6dd3776723
commit
6ce5268b56
@ -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.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user