components/policy/tools/template_writers/policy_template_generator.py
def _AddAtomicGroups(self, policy_list, policy_atomic_groups):
    '''Adds an 'atomic_group' field to the policies that are part of an atomic
    group.

    Args:
      policy_list: A list of policies and groups.
      policy_atomic_groups: A list of policy atomic groups
    '''
    policy_lookup = {
        policy['name']: policy
        for policy in policy_list
        if not IsGroupOrAtomicGroup(policy)
    }
    for group in policy_atomic_groups:
      for policy_name in group['policies']:
        policy_lookup[policy_name]['atomic_group'] = group['name']
        break
Adds an 'atomic_group' field to the policies that are part of an atomic
    group.

    Args:
      policy_list: A list of policies and groups.
      policy_atomic_groups: A list of policy atomic groups
    
Adds an 'atomic_group' field to the policies that are part of an atomic
group.
Adds an ' atomic_group ' field to the policies that are part of an atomic group .
def _AddAtomicGroups(self, policy_list, policy_atomic_groups):
    policy_lookup = {
        policy['name']: policy
        for policy in policy_list
        if not IsGroupOrAtomicGroup(policy)
    }
    for group in policy_atomic_groups:
      for policy_name in group['policies']:
        policy_lookup[policy_name]['atomic_group'] = group['name']
        break
def _AddAtomicGroups ( self , policy_list , policy_atomic_groups ) : policy_lookup = { policy [ 'name' ] : policy for policy in policy_list if not IsGroupOrAtomicGroup ( policy ) } for group in policy_atomic_groups : for policy_name in group [ 'policies' ] : policy_lookup [ policy_name ] [ 'atomic_group' ] = group [ 'name' ] break
Adds an 'atomic_group' field to the policies that are part of an atomic
group.
Adds an ' atomic_group ' field to the policies that are part of an atomic group .
'''Adds an 'atomic_group' field to the policies that are part of an atomic
    group.

    Args:
      policy_list: A list of policies and groups.
      policy_atomic_groups: A list of policy atomic groups
    '''
self
policy_list
A list of policies and groups.
A list of policies and groups .
policy_atomic_groups
A list of policy atomic groups
A list of policy atomic groups