original_docstring: Append the "physical_host" type to all containers.
  
      :param inventory: ``dict``  Living dictionary of inventory
      :param host_type: ``str``  Name of the host type
      
docstring: Append the "physical_host" type to all containers.
docstring_tokens: Append the " physical_host " type to all containers .
code: def _append_container_types(inventory, host_type):
      """Append the "physical_host" type to all containers.
  
      :param inventory: ``dict``  Living dictionary of inventory
      :param host_type: ``str``  Name of the host type
      """
      for _host in inventory['_meta']['hostvars'].keys():
          hdata = inventory['_meta']['hostvars'][_host]
          if 'container_name' in hdata:
              if hdata['container_name'].startswith(host_type):
                  if 'physical_host' not in hdata:
                      hdata['physical_host'] = host_type
code_tokens: def _append_container_types ( inventory , host_type ) : for _host in inventory [ '_meta' ] [ 'hostvars' ] . keys ( ) : hdata = inventory [ '_meta' ] [ 'hostvars' ] [ _host ] if 'container_name' in hdata : if hdata [ 'container_name' ] . startswith ( host_type ) : if 'physical_host' not in hdata : hdata [ 'physical_host' ] = host_type
short_docstring: Append the "physical_host" type to all containers.
short_docstring_tokens: Append the " physical_host " type to all containers .
comment: """Append the "physical_host" type to all containers.
  
      :param inventory: ``dict``  Living dictionary of inventory
      :param host_type: ``str``  Name of the host type
      """