def get_current_target(module, module_parameter=None, action_parameter=None):
 result = exec_action(module, 'show', module_parameter=module_parameter, action_parameter=action_parameter)[0]
 if (not result):
  return None
 if (result == '(unset)'):
  return None
 return result

def get_current_target ( module , module_parameter = None , action_parameter = None ) : result = exec_action ( module , 'show' , module_parameter = module_parameter , action_parameter = action_parameter ) [ 0 ] if ( not result ) : return None if ( result == '(unset)' ) : return None return result
get the currently selected target for the given module .