mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
catch None cases for comments in jboss7 state module
This commit is contained in:
parent
f49ccdf30f
commit
4063bae5de
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue