mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge branch '2015.8' into '2016.3'
No conflicts.
This commit is contained in:
commit
bce47c9175
@ -531,6 +531,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