2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-23 19:52:10 +00:00

Clear both appropriate profile attributes

When setting a pending profile. clear any staged or established profile.
This commit is contained in:
Jarrod Johnson 2020-07-01 15:39:12 -04:00
parent fa6d42b1b3
commit f70a3daf9a

View File

@ -29,7 +29,9 @@ def armonce(nr, cli):
def setpending(nr, profile, cli):
for rsp in cli.update('/noderange/{0}/attributes/current'.format(nr),
{'deployment.pendingprofile': profile, 'deployment.stagedprofile': None}):
{'deployment.pendingprofile': profile,
'deployment.stagedprofile': '',
'deployment.profile': ''}):
pass