mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #37419 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
This commit is contained in:
commit
7864f9b79d
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue