Skip to content

Commit

Permalink
apply prev. __class__ fix everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
hwhesselink committed Mar 6, 2021
1 parent ceb9cea commit 0260924
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snmp/files/snmpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ createUser {{ user.username }} {{ user.get('authproto', 'MD5') }} {{ user.get('a
{%- endfor %}

{% for declaration, values in config.items() %}
{%- if values.__class__ in (().__class__, [].__class__) %}
{%- if values is sequence and values is not mapping and values is not string %}
{%- for value in values %}
{{declaration}} {{value}}
{%- endfor %}
Expand Down
2 changes: 1 addition & 1 deletion snmp/files/snmpd.conf.minimal
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ createUser {{ user.username }} {{ user.get('authproto', 'MD5') }} {{ user.passph

# Extra settings
{% for declaration, values in config.items() %}
{%- if values.__class__ in (().__class__, [].__class__) %}
{%- if values is sequence and values is not mapping and values is not string %}
{%- for value in values %}
{{declaration}} {{value}}
{%- endfor %}
Expand Down

0 comments on commit 0260924

Please sign in to comment.