def mock_ret(cdata):
 if cdata['args']:
  name = cdata['args'][0]
 else:
  name = cdata['kwargs']['name']
 return {'name': name, 'comment': 'Not called, mocked', 'changes': {}, 'result': True}

def mock_ret ( cdata ) : if cdata [ 'args' ] : name = cdata [ 'args' ] [ 0 ] else : name = cdata [ 'kwargs' ] [ 'name' ] return { 'name' : name , 'comment' : 'Not called, mocked' , 'changes' : { } , 'result' : True }
returns a mocked return dict with information about the run .