def _format_state_result(name, result, changes=None, comment=''):
 if (changes is None):
  changes = {'old': '', 'new': ''}
 return {'name': name, 'result': result, 'changes': changes, 'comment': comment}

def _format_state_result ( name , result , changes = None , comment = '' ) : if ( changes is None ) : changes = { 'old' : '' , 'new' : '' } return { 'name' : name , 'result' : result , 'changes' : changes , 'comment' : comment }
creates the state result dictionary .