From 4347400605bd2b0cdd11355ab8151788dbc0d51c Mon Sep 17 00:00:00 2001 From: jeanluc Date: Mon, 30 Jan 2023 05:48:31 +0100 Subject: [PATCH] fix(package): Fix gpg.verified detection --- gitea/package/install.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitea/package/install.sls b/gitea/package/install.sls index 8e6f6e0..26254b6 100644 --- a/gitea/package/install.sls +++ b/gitea/package/install.sls @@ -65,7 +65,7 @@ Gitea GPG key is present (fallback): - require: - file: /tmp/gitea-key.asc -{%- if "gpg.verified" not in salt %} +{%- if "gpg" not in salt["saltutil.list_extmods"]().get("states", []) %} # Ensure the following does not run without the key being present. # The official gpg modules are currently big liars and always report @@ -77,7 +77,7 @@ Gitea key is actually present: {%- endif %} -{%- if "gpg.verified" not in salt %} +{%- if "gpg" not in salt["saltutil.list_extmods"]().get("states", []) %} Gitea is verified: test.configurable_test_state: