Skip to content

Commit

Permalink
Updating tables.py for test fix from pull 824
Browse files Browse the repository at this point in the history
  • Loading branch information
emdeefive committed Oct 30, 2024
1 parent 6339c80 commit 35b60df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nautobot_golden_config/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def _generate_config_plan_from_feature(self):
continue

if not all(isinstance(config_set, str) for config_set in config_sets):
config_set = str(config_sets)
config_set = config_sets
else:
config_set = "\n".join(config_sets)
config_plan = ConfigPlan.objects.create(
Expand Down
4 changes: 2 additions & 2 deletions nautobot_golden_config/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,12 +485,12 @@ class ConfigPlanTable(StatusTableMixin, BaseTable):
pk = ToggleColumn()
device = LinkColumn("plugins:nautobot_golden_config:configplan", args=[A("pk")])
plan_result = TemplateColumn(
template_code="""<a href="{% url 'extras:jobresult' pk=record.plan_result.pk %}" <i class="mdi mdi-clipboard-text-play-outline"></i></a> """
template_code="""<a href="{% url 'extras:jobresult' pk=record.plan_result.pk %}"><i class="mdi mdi-clipboard-text-play-outline"></i></a>"""
)
deploy_result = TemplateColumn(
template_code="""
{% if record.deploy_result %}
<a href="{% url 'extras:jobresult' pk=record.deploy_result.pk %}" <i class="mdi mdi-clipboard-text-play-outline"></i></a>
<a href="{% url 'extras:jobresult' pk=record.deploy_result.pk %}"><i class="mdi mdi-clipboard-text-play-outline"></i></a>
{% else %}
&mdash;
{% endif %}
Expand Down

0 comments on commit 35b60df

Please sign in to comment.