(self)
Take config from the _dict and place them into ready-to-use config in `self`.
Take config from the _dict and place them into ready-to-use config in `self`.
Take config from the _dict and place them into ready - to - use config in self .
def extract_config_from_dict(self):
        """ Take config from the _dict and place them into ready-to-use config in `self`. """
        containers = [ContainerConfig(self._get_container_config_dict(cdict))
                      for cdict in self._dict.get('containers', [])]
        # If we cannot consider multiple containers, we just pass the full dictionary to initialize
        # the `ContainerConfig` instance.
        if not len(containers):
            unique_container_config = ContainerConfig(self._dict)
            # We don't inherit global provisioning in specific container config.
            if 'provisioning' in unique_container_config:
                del unique_container_config['provisioning']

            # We associate a specific name to the unique container if it wasn't explicitly defined
            # under the 'containers' section of the LXDock file.
            unique_container_config['name'] = 'default'
            containers = [unique_container_config, ]

        self.containers.extend(containers)

        self.provisioning_steps = self._dict.get('provisioning', [])
def extract_config_from_dict ( self ) : containers = [ ContainerConfig ( self . _get_container_config_dict ( cdict ) ) for cdict in self . _dict . get ( 'containers' , [ ] ) ] # If we cannot consider multiple containers, we just pass the full dictionary to initialize # the `ContainerConfig` instance. if not len ( containers ) : unique_container_config = ContainerConfig ( self . _dict ) # We don't inherit global provisioning in specific container config. if 'provisioning' in unique_container_config : del unique_container_config [ 'provisioning' ] # We associate a specific name to the unique container if it wasn't explicitly defined # under the 'containers' section of the LXDock file. unique_container_config [ 'name' ] = 'default' containers = [ unique_container_config , ] self . containers . extend ( containers ) self . provisioning_steps = self . _dict . get ( 'provisioning' , [ ] )