Page MenuHomeDevCentral

D2671.diff
No OneTemporary

D2671.diff

diff --git a/_modules/credentials.py b/_modules/credentials.py
--- a/_modules/credentials.py
+++ b/_modules/credentials.py
@@ -218,7 +218,12 @@
for role in __salt__["node.get"]("roles", node)
if role in roles_policies
]
- return _join_document_fragments(rules)
+ policy = _join_document_fragments(rules)
+
+ if not policy:
+ policy = "# This policy is intentionally left blank."
+
+ return policy
def build_policies_by_node():
@@ -229,4 +234,4 @@
for node in __pillar__["nodes"].keys()
}
- return _filter_discard_empty_string_values(policies)
+ return policies

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 20:18 (21 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263152
Default Alt Text
D2671.diff (631 B)

Event Timeline