Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3995675
D1423.id3629.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
724 B
Referenced Files
None
Subscribers
None
D1423.id3629.diff
View Options
diff --git a/_modules/node.py b/_modules/node.py
--- a/_modules/node.py
+++ b/_modules/node.py
@@ -77,7 +77,7 @@
return default_value
-def list(key, nodename=None):
+def get_list(key, nodename=None):
'''
A function to get a node pillar configuration.
@@ -114,7 +114,7 @@
salt * node.has_role devserver
'''
- return role in list('roles', nodename)
+ return role in get_list('roles', nodename)
def filter_by_role(pillar_key, nodename=None):
@@ -134,7 +134,7 @@
salt * node.filter_by_role web_content_sls
'''
- roles = list('roles', nodename)
+ roles = get_list('roles', nodename)
dictionary = __pillar__.get(pillar_key, {})
filtered_list = []
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 06:52 (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2346354
Default Alt Text
D1423.id3629.diff (724 B)
Attached To
Mode
D1423: Rename node.list to node.get_list
Attached
Detach File
Event Timeline
Log In to Comment