code: func (p *defaultProvisioner) updateProvisionStatus(paths Paths, s *ProvisionStatus) (err error) {
  	// Create the file
  	var f *os.File
  	if f, err = os.Create(paths.ProvisionStatus()); err != nil {
  		err = errors.Wrapf(err, "creating file %s failed", paths.ProvisionStatus())
  		return
  	}
  	defer f.Close()
  
  	// Marshal
  	if err = json.NewEncoder(f).Encode(s); err != nil {
  		err = errors.Wrapf(err, "json encoding into %s failed", paths.ProvisionStatus())
  		return
  	}
  	return
  }
docs: // ProvisionStatus updates the provision status