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:
parent
2c30d4069c
commit
fa6d42b1b3
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user