Hi All,
After deleting the heat-stack , I am polling until the stack is DELETED. I am following below way of polling until stack-get fails with HTTPNotFound Exception. Is there any other better way of checking whether stack is DELETED instead of catching exception. >>> from heatclient.client import Client heat_client = Client('1', endpoint=heat_url, token=auth_token) heat_client.stacks.delete(stack_name) ******poll loop********** try: stack_get = heat_client.stacks.get(stack_name) except (heatexception.HTTPNotFound): # stack is deleted if 'IN_PROGRESS' in stack_get.status: # sleep and again loop ********************************* Thanks Eswar
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack