updated jinja template for snmp contact python2 vs python3 issue (#9949)

This commit is contained in:
Travis Van Duyn 2022-02-10 09:01:46 -08:00 committed by Judy Joseph
parent 84a986bc27
commit 05791708f1

View File

@ -82,7 +82,7 @@ sysLocation {{ SNMP.LOCATION.Location }}
sysLocation public
{% endif %}
{% if SNMP is defined and SNMP.CONTACT is defined %}
sysContact {{ SNMP.CONTACT.keys()[0] }} {{ SNMP.CONTACT.values()[0] }}
sysContact {{ SNMP.CONTACT.keys() | first }} {{ SNMP.CONTACT.values() | first }}
{% else %}
sysContact Azure Cloud Switch vteam <linuxnetdev@microsoft.com>
{% endif %}