def _load_result(response, ret):
 if (response['code'] is None):
  ret['comment'] = response['content']
 elif (response['code'] == 401):
  ret['comment'] = '401 Forbidden: Authentication required!'
 elif (response['code'] == 404):
  ret['comment'] = response['content']['message']
 elif (response['code'] == 200):
  ret['result'] = True
  ret['comment'] = 'Listing Current Configuration Only.  Not action or changes occurred during the execution of this state.'
  ret['changes'] = response['content']
 else:
  ret['comment'] = response['content']['message']
 return ret

def _load_result ( response , ret ) : if ( response [ 'code' ] is None ) : ret [ 'comment' ] = response [ 'content' ] elif ( response [ 'code' ] == 401 ) : ret [ 'comment' ] = '401 Forbidden: Authentication required!' elif ( response [ 'code' ] == 404 ) : ret [ 'comment' ] = response [ 'content' ] [ 'message' ] elif ( response [ 'code' ] == 200 ) : ret [ 'result' ] = True ret [ 'comment' ] = 'Listing Current Configuration Only.  Not action or changes occurred during the execution of this state.' ret [ 'changes' ] = response [ 'content' ] else : ret [ 'comment' ] = response [ 'content' ] [ 'message' ] return ret
format the results of listing functions .