def get_all_groups(path_prefix='/', region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 if (not conn):
  return None
 _groups = conn.get_all_groups(path_prefix=path_prefix)
 groups = _groups.list_groups_response.list_groups_result.groups
 marker = getattr(_groups.list_groups_response.list_groups_result, 'marker', None)
 while marker:
  _groups = conn.get_all_groups(path_prefix=path_prefix, marker=marker)
  groups = (groups + _groups.list_groups_response.list_groups_result.groups)
  marker = getattr(_groups.list_groups_response.list_groups_result, 'marker', None)
 return groups

def get_all_groups ( path_prefix = '/' , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) if ( not conn ) : return None _groups = conn . get_all_groups ( path_prefix = path_prefix ) groups = _groups . list_groups_response . list_groups_result . groups marker = getattr ( _groups . list_groups_response . list_groups_result , 'marker' , None ) while marker : _groups = conn . get_all_groups ( path_prefix = path_prefix , marker = marker ) groups = ( groups + _groups . list_groups_response . list_groups_result . groups ) marker = getattr ( _groups . list_groups_response . list_groups_result , 'marker' , None ) return groups
retrieve all ansible groups .