Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3715285
D2671.id6746.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.id6746.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
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)
Attached To
Mode
D2671: Avoid a server to keep access to stale Vault policies
Attached
Detach File
Event Timeline
Log In to Comment