2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Clear stagedprofile

staged profile should be cleared on completion.
This commit is contained in:
Jarrod Johnson 2020-07-01 15:35:17 -04:00
parent 2c30d4069c
commit fa6d42b1b3

View File

@ -178,6 +178,8 @@ def handle_request(env, start_response):
updates = {}
if pending:
updates['deployment.pendingprofile'] = {'value': ''}
if targattr == 'deployment.profile':
updates['deployment.stagedprofile'] = {'value': ''}
currprof = currattr.get(targattr, {}).get('value', '')
if currprof != pending:
updates[targattr] = {'value': pending}