def _check_all_conf_groups_present(config, environment):
 excludes = ('global_overrides', 'cidr_networks', 'used_ips')
 config_groups = [k for k in config.keys() if (k not in excludes)]
 env_groups = environment['physical_skel'].keys()
 retval = True
 for group in config_groups:
  if (group not in env_groups):
   msg = 'Group {} was found in configuration but not the environment.'.format(group)
   warnings.warn(msg)
   retval = False
 return retval

def _check_all_conf_groups_present ( config , environment ) : excludes = ( 'global_overrides' , 'cidr_networks' , 'used_ips' ) config_groups = [ k for k in config . keys ( ) if ( k not in excludes ) ] env_groups = environment [ 'physical_skel' ] . keys ( ) retval = True for group in config_groups : if ( group not in env_groups ) : msg = 'Group {} was found in configuration but not the environment.' . format ( group ) warnings . warn ( msg ) retval = False return retval
verifies that all groups defined in the config are in the environment if a group is in config but not the environment .