mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
action deprovision_upgrade_transfer
This commit is contained in:
@@ -52,11 +52,15 @@ def doUpdateCros():
|
|||||||
elif action in ['deprovisionretiringdevice']:
|
elif action in ['deprovisionretiringdevice']:
|
||||||
action = 'deprovision'
|
action = 'deprovision'
|
||||||
deprovisionReason = 'retiring_device'
|
deprovisionReason = 'retiring_device'
|
||||||
|
elif action == 'deprovisionupgradetransfer':
|
||||||
|
action = 'deprovision'
|
||||||
|
deprovisionReason = 'upgrade_transfer'
|
||||||
elif action not in ['disable', 'reenable']:
|
elif action not in ['disable', 'reenable']:
|
||||||
controlflow.system_error_exit(2, f'expected action of ' \
|
controlflow.system_error_exit(2, f'expected action of ' \
|
||||||
f'deprovision_same_model_replace, ' \
|
f'deprovision_same_model_replace, ' \
|
||||||
f'deprovision_different_model_replace, ' \
|
f'deprovision_different_model_replace, ' \
|
||||||
f'deprovision_retiring_device, disable or reenable,'
|
f'deprovision_retiring_device, ' \
|
||||||
|
f'deprovision_upgrade_transfer, disable or reenable,'
|
||||||
f' got {action}')
|
f' got {action}')
|
||||||
action_body = {'action': action}
|
action_body = {'action': action}
|
||||||
if deprovisionReason:
|
if deprovisionReason:
|
||||||
|
|||||||
Reference in New Issue
Block a user