def get_target_list(module, action_parameter=None):
 exec_output = exec_action(module, 'list', action_parameter=action_parameter)
 if (not exec_output):
  return None
 target_list = []
 if isinstance(exec_output, list):
  for item in exec_output:
   target_list.append(item.split(None, 1)[0])
  return target_list
 return None

def get_target_list ( module , action_parameter = None ) : exec_output = exec_action ( module , 'list' , action_parameter = action_parameter ) if ( not exec_output ) : return None target_list = [ ] if isinstance ( exec_output , list ) : for item in exec_output : target_list . append ( item . split ( None , 1 ) [ 0 ] ) return target_list return None
list available targets for the given module .