Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3775888
D2671.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
631 B
Referenced Files
None
Subscribers
None
D2671.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D2671: Avoid a server to keep access to stale Vault policies
Attached
Detach File
Event Timeline
Log In to Comment