Make namespace creation states unique
Change-Id: I5d3ab1082e357fe52a0f5c153d5cd3e021b24736
diff --git a/helm/client.sls b/helm/client.sls
index 3fb2c8b..0c63fbe 100644
--- a/helm/client.sls
+++ b/helm/client.sls
@@ -152,7 +152,7 @@
{%- endif %}
- cmd: ensure_{{ namespace }}_namespace
{{ gce_require }}
- {%- do namespaces.append(namespace) %}
+ {%- do namespaces.append((namespace, None)) %}
{%- else %}{# not release.enabled #}
absent_{{ release_id }}_release:
helm_release.absent:
@@ -196,7 +196,7 @@
- archive: extract_kubectl
{%- endif %}{# client.kubectl.install #}
-{%- for namespace in namespaces %}
+{%- for namespace in dict(namespaces) %}
ensure_{{ namespace }}_namespace:
cmd.run:
- name: kubectl create namespace {{ namespace }}