Page MenuHomeDevCentral

D2671.id6746.diff
No OneTemporary

D2671.id6746.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
Wed, Nov 6, 04:31 (3 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2231161
Default Alt Text
D2671.id6746.diff (631 B)

Event Timeline