Merge "Update volume's 'updated_at' when accept transfer"
This commit is contained in:
commit
5d761327da
@ -5478,8 +5478,7 @@ def transfer_accept(context, transfer_id, user_id, project_id):
|
|||||||
'status': 'awaiting-transfer'}
|
'status': 'awaiting-transfer'}
|
||||||
update = {'status': 'available',
|
update = {'status': 'available',
|
||||||
'user_id': user_id,
|
'user_id': user_id,
|
||||||
'project_id': project_id,
|
'project_id': project_id}
|
||||||
'updated_at': models.Volume.updated_at}
|
|
||||||
if not conditional_update(context, models.Volume, update, expected):
|
if not conditional_update(context, models.Volume, update, expected):
|
||||||
msg = (_('Transfer %(transfer_id)s: Volume id %(volume_id)s '
|
msg = (_('Transfer %(transfer_id)s: Volume id %(volume_id)s '
|
||||||
'expected in awaiting-transfer state.')
|
'expected in awaiting-transfer state.')
|
||||||
|
Loading…
Reference in New Issue
Block a user