catch None cases for comments in jboss7 state module

This commit is contained in:
Jason Portnoy 2016-05-11 17:37:29 -04:00 committed by rallytime
parent f49ccdf30f
commit 4063bae5de

View file

@ -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