2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-20 17:32:21 +00:00

Merge pull request #322 from Obihoernchen/fix/nodedeploy-diskless-clear

Do not report a cleared diskless profile as completed
This commit is contained in:
Jarrod Johnson
2026-10-30 07:55:49 -04:00
committed by GitHub
+5 -1
View File
@@ -187,7 +187,11 @@ def main(args):
profile = 'staged: {}'.format(profile)
else:
profile = databynode[node].get('deployment.profile', '')
if profile:
if profile and databynode[node].get('deployment.state', '') == 'booted':
# a diskless node runs this profile until its next
# reboot, but it is not pending anymore
profile = 'booted, not pending: {}'.format(profile)
elif profile:
profile = 'completed: {}'.format(profile)
elif args.clear:
profile = 'No profile applied, any pending profile has been cleared'