Page MenuHomeDevCentral

D1423.id3629.diff
No OneTemporary

D1423.id3629.diff

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

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)

Event Timeline