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