From 34034432987209c4ce21ac514752b7316509e9e7 Mon Sep 17 00:00:00 2001 From: Gonzalo Rafuls Date: Tue, 10 Mar 2020 10:31:03 -0400 Subject: [PATCH] fix: early notifications when running notify.py we are checking for validated clouds but old clouds that moved back to default cloud remained validated. added logic to move old clouds back to validated=False. Closes: https://github.com/redhat-performance/quads/issues/317 Change-Id: I09614cb58628b38b428af265241cc619765806ae --- bin/quads-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/quads-cli b/bin/quads-cli index 97811be64..33c35b9af 100755 --- a/bin/quads-cli +++ b/bin/quads-cli @@ -554,7 +554,7 @@ def main(_args): _old_cloud_obj = Cloud.objects(name=results[0]["current"]).first() old_cloud_schedule = Schedule.current_schedule(cloud=_old_cloud_obj) if not old_cloud_schedule and _old_cloud_obj.name != "cloud01": - _old_cloud_obj.update(provisioned=False, vlan=None, wipe=True, ccuser=[]) + _old_cloud_obj.update(validated=False, provisioned=False, vlan=None, wipe=True, ccuser=[]) exit(0)