Skip to content

Commit

Permalink
Add checks for dellos-acl undefined vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhivyap authored and skg-net committed Feb 14, 2017
1 parent 80ee78c commit 1ad48be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/dellos9_acl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ dellos_acl:
#####################################}
{% if (dellos_acl is defined and dellos_acl) and (hostname in dellos_acl) %}
{% set acl_vars = dellos_acl[hostname] %}

{% if acl_vars %}
{% for val in acl_vars %}
{% if val.name is defined and val.name %}
{% if val.state is defined and val.state == "absent" %}
Expand Down Expand Up @@ -233,3 +233,4 @@ interface {{ intf.name }}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}

0 comments on commit 1ad48be

Please sign in to comment.