Skip to content

Commit

Permalink
fix CA ext_pillar when a cert is defined, but no host has that role i…
Browse files Browse the repository at this point in the history
…n an environment
  • Loading branch information
ewdurbin committed Jul 15, 2022
1 parent 476b602 commit 4085720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/_extensions/pillar/ca.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def ext_pillar(minion_id, pillar, base="/etc/ssl", name="PSFCA", cert_opts=None)
for role in [
pillar.get("roles", {}).get(r) for r in config.get("roles", "")
]
if role.get("pattern") is not None
if role and role.get("pattern") is not None
]
if any([compound(pat, minion_id) for pat in role_patterns]):
# Create the options
Expand Down

0 comments on commit 4085720

Please sign in to comment.