mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix pylint warning
This commit is contained in:
parent
d0549e56ba
commit
5df6a8008c
1 changed files with 3 additions and 1 deletions
|
@ -99,11 +99,13 @@ def lowstate_file_refs(chunks, extras=''):
|
|||
return refs
|
||||
|
||||
|
||||
def salt_refs(data, ret=[]):
|
||||
def salt_refs(data, ret=None):
|
||||
'''
|
||||
Pull salt file references out of the states
|
||||
'''
|
||||
proto = 'salt://'
|
||||
if ret is None:
|
||||
ret = []
|
||||
if isinstance(data, str):
|
||||
if data.startswith(proto) and data not in ret:
|
||||
ret.append(data)
|
||||
|
|
Loading…
Add table
Reference in a new issue