'Copy configuration into state.'

def synchronize_state(self):

    self._state_datasets = [DatasetState(dataset_id=dataset.dataset_id, primary=dataset.primary, maximum_size=dataset.maximum_size, path=FilePath('/flocker').child(bytes(dataset.dataset_id))) for dataset in self._configured_datasets.values()]
    self._state_containers = [ContainerState(node_uuid=container.node_uuid, name=container.name, image=container.image, running=True, volumes=container.volumes) for container in self._configured_containers.values()]
