From d8436d8fe5c261d769d155600bf1f377dae3f4eb Mon Sep 17 00:00:00 2001 From: MUTHU-RAKESH-27 <19cs127@psgitech.ac.in> Date: Fri, 22 Dec 2023 16:16:05 +0530 Subject: [PATCH] Resolved a bug on the variable mismatch on project_name and template_name --- plugins/modules/template_intent.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/modules/template_intent.py b/plugins/modules/template_intent.py index cba347caac..ad5056336d 100644 --- a/plugins/modules/template_intent.py +++ b/plugins/modules/template_intent.py @@ -2292,19 +2292,18 @@ def get_export_template_values(self, export_values): function='get_projects_details' ) for values in export_values: - self.log(str(values.get("projectName"))) + self.log(str(values.get("project_name"))) template_details = template_details.get("response") self.log(str(template_details)) - self.log(str(values.get("projectName"))) all_template_details = get_dict_result(template_details, "name", - values.get("projectName")) + values.get("project_name")) self.log(str(all_template_details)) all_template_details = all_template_details.get("templates") self.log(str(all_template_details)) template_detail = get_dict_result(all_template_details, "name", - values.get("templateName")) + values.get("template_name")) self.log(str(template_detail)) if template_detail is None: self.msg = "Invalid project_name and template_name in export"