Skip to content

Commit

Permalink
provider-config: Update supported versions
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Dec 15, 2023
1 parent cc8a4bf commit a274f64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/provider-config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"github.com/lxc/terraform-provider-incus/internal/utils"
)

// supportedLXDVersions defines LXD versions that are supported by the provider.
const supportedLXDVersions = ">= 4.0.0"
// supportedIncusVersions defines Incus versions that are supported by the provider.
const supportedIncusVersions = ">= 0.1"

// A global mutex.
var mutex sync.RWMutex
Expand Down Expand Up @@ -306,13 +306,13 @@ func verifyLxdServerVersion(instServer lxd.InstanceServer) error {
return nil
}

ok, err := utils.CheckVersion(serverVersion, supportedLXDVersions)
ok, err := utils.CheckVersion(serverVersion, supportedIncusVersions)
if err != nil {
return err
}

if !ok {
return fmt.Errorf("LXD server with version %q does not meet the required version constraint: %q", serverVersion, supportedLXDVersions)
return fmt.Errorf("LXD server with version %q does not meet the required version constraint: %q", serverVersion, supportedIncusVersions)
}

return nil
Expand Down

0 comments on commit a274f64

Please sign in to comment.