Merge pull request #5127 from hulu/file-comment-shadowing

file state: comment => comment_, to avoid shadowing outer func
This commit is contained in:
Thomas S Hatch 2013-05-17 20:40:27 -07:00
commit f2b62412dc

View File

@ -790,7 +790,7 @@ def managed(name,
)
# Gather the source file from the server
sfn, source_sum, comment = __salt__['file.get_managed'](
sfn, source_sum, comment_ = __salt__['file.get_managed'](
name,
template,
source,
@ -803,8 +803,8 @@ def managed(name,
defaults,
**kwargs
)
if comment and contents is None:
return _error(ret, comment)
if comment_ and contents is None:
return _error(ret, comment_)
else:
return __salt__['file.manage_file'](name,
sfn,