fix pylint warning

This commit is contained in:
Christophe Drevet-Droguet 2015-05-11 18:51:34 +02:00
parent d0549e56ba
commit 5df6a8008c

View file

@ -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)