From af9721a0f579dd48719247021a6b56a10e08f29e Mon Sep 17 00:00:00 2001 From: Niels Abspoel Date: Sat, 10 Mar 2018 16:35:57 +0100 Subject: [PATCH] fix iteritems for python3 --- openssh/auth_map.sls | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openssh/auth_map.sls b/openssh/auth_map.sls index 2cd5870..86851ce 100644 --- a/openssh/auth_map.sls +++ b/openssh/auth_map.sls @@ -5,11 +5,11 @@ include: {%- set openssh_pillar = salt["pillar.get"]("openssh", {}) -%} {%- set authorized_keys_file = salt["pillar.get"]("sshd_config:AuthorizedKeysFile", None) %} -{%- for store, config in salt["pillar.get"]("openssh:auth_map", {}).iteritems() %} +{%- for store, config in salt["pillar.get"]("openssh:auth_map", {}).items() %} {%- set store_base = config["source"] %} # SSH store openssh:auth_map:{{ store }} -{%- for user, keys in config.get("users", {}).iteritems() %} -{%- for key, key_cfg in keys.iteritems() %} +{%- for user, keys in config.get("users", {}).items() %} +{%- for key, key_cfg in keys.items() %} "ssh_auth--{{ store }}--{{ user }}--{{ key }}": {%- set present = key_cfg.get("present", True) %} {%- set options = key_cfg.get("options", []) %}