Skip to content

Commit

Permalink
Merge pull request #88 from MUTHU-RAKESH-27/main
Browse files Browse the repository at this point in the history
Resolved a bug on the variable mismatch on project_name and template_name
  • Loading branch information
madhansansel authored Dec 22, 2023
2 parents 84d3737 + d8436d8 commit e174ec0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/modules/template_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e174ec0

Please sign in to comment.