def templates()

in hostfactory/host_provider/src/cyclecloud_provider.py [0:0]


    def templates(self): 
        try:
            pro_conf_dir = os.getenv('PRO_CONF_DIR', os.getcwd())
            conf_path = os.path.join(pro_conf_dir, "conf", "azureccprov_templates.json")
            with open(conf_path, 'r') as json_file:
                templates_json = json.load(json_file)
            templates_json["message"] = "Get available templates success."   
            return self.stdout_handler.handle(templates_json, debug_output=False)
        except:
            logger.warning("Exiting Non-zero so that symphony will retry")
            logger.exception(f"Could not get azureccprov_templates.json at {conf_path}")
            sys.exit(1)