From fa6d42b1b3c3f2b1497e8d65b44dcfbdbf4fb88b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 1 Jul 2020 15:35:17 -0400 Subject: [PATCH] Clear stagedprofile staged profile should be cleared on completion. --- confluent_server/confluent/selfservice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/selfservice.py b/confluent_server/confluent/selfservice.py index 57dd625e..76be184e 100644 --- a/confluent_server/confluent/selfservice.py +++ b/confluent_server/confluent/selfservice.py @@ -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}