code: func (daemon *Daemon) reloadAllowNondistributableArtifacts(conf *config.Config, attributes map[string]string) error {
  	// Update corresponding configuration.
  	if conf.IsValueSet("allow-nondistributable-artifacts") {
  		daemon.configStore.AllowNondistributableArtifacts = conf.AllowNondistributableArtifacts
  		if err := daemon.RegistryService.LoadAllowNondistributableArtifacts(conf.AllowNondistributableArtifacts); err != nil {
  			return err
  		}
  	}
  
  	// Prepare reload event attributes with updatable configurations.
  	if daemon.configStore.AllowNondistributableArtifacts != nil {
  		v, err := json.Marshal(daemon.configStore.AllowNondistributableArtifacts)
  		if err != nil {
  			return err
  		}
  		attributes["allow-nondistributable-artifacts"] = string(v)
  	} else {
  		attributes["allow-nondistributable-artifacts"] = "[]"
  	}
  
  	return nil
  }
docs: // reloadAllowNondistributableArtifacts updates the configuration with allow-nondistributable-artifacts options
  // and updates the passed attributes.