From 1290fd5ec7671d1a7f4ae6ea854107de14ab0e96 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 30 Apr 2023 20:11:24 +0200 Subject: Repair undefined id Replace with call to grains dict. Signed-off-by: Georg Pfuetzenreuter --- salt/common/suse.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/suse.sls b/salt/common/suse.sls index da0a99e..daac244 100644 --- a/salt/common/suse.sls +++ b/salt/common/suse.sls @@ -1,4 +1,4 @@ -{%- set roles = salt['http.query']('http://machine-roles.lysergic.dev:4580/roles', decode=True, decode_type='json', params={"machine": id})['dict']['roles'] -%} +{%- set roles = salt['http.query']('http://machine-roles.lysergic.dev:4580/roles', decode=True, decode_type='json', params={"machine": grains['id']})['dict']['roles'] -%} include: {#- drop pillar check after all firewall configurations have been imported #} -- cgit v1.2.3