def get_containers_for_group(inventory, group):
 if ('hosts' in inventory[group]):
  containers = inventory[group]['hosts']
 else:
  containers = None
 return containers

def get_containers_for_group ( inventory , group ) : if ( 'hosts' in inventory [ group ] ) : containers = inventory [ group ] [ 'hosts' ] else : containers = None return containers
return containers that belong to a particular group .