lxd/db/projects.go
func (c *ClusterTx) ProjectHasImages(name string) (bool, error) {
	project, err := c.ProjectGet(name)
	if err != nil {
		return false, errors.Wrap(err, "fetch project")
	}

	enabled := project.Config["features.images"] == "true"

	return enabled, nil
}
func (c *ClusterTx) ProjectHasImages(name string) (bool, error) {
	project, err := c.ProjectGet(name)
	if err != nil {
		return false, errors.Wrap(err, "fetch project")
	}

	enabled := project.Config["features.images"] == "true"

	return enabled, nil
}
func ( c * ClusterTx ) ProjectHasImages ( name string ) ( bool , error ) { project , err := c . ProjectGet ( name ) if err != nil { return false , errors . Wrap ( err , " " ) } enabled := project . Config [ " " ] == " " return enabled , nil }
// ProjectHasImages is a helper to check if a project has the images
// feature enabled.
ProjectHasImages is a helper to check if a project has the images feature enabled .