mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #37392 from rallytime/bp-33190
Back-port #33190 to 2015.8
This commit is contained in:
commit
7b1d3b5562
@ -730,6 +730,12 @@ def __check_dict_contains(dct, dict_name, keys, comment='', result=True):
|
||||
|
||||
|
||||
def __append_comment(new_comment, current_comment=''):
|
||||
if current_comment is None and new_comment is None:
|
||||
return ''
|
||||
if current_comment is None:
|
||||
return new_comment
|
||||
if new_comment is None:
|
||||
return current_comment
|
||||
return current_comment+'\n'+new_comment
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user