Skip to content

Commit

Permalink
k8s resource: clean up - remove needless control
Browse files Browse the repository at this point in the history
  • Loading branch information
alidaw committed Sep 19, 2024
1 parent 98d617b commit 64fb92d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gridscale/resource_gridscale_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,12 @@ func deriveK8sTemplateFromResourceDiff(client *gsclient.Client, d *schema.Resour
releaseInterface, isReleaseSet := d.GetOk("release")
release := releaseInterface.(string)

if isVersionSet && version != "" {
if isVersionSet {
derivationTypesRequested += 1
derivationType = "version"
}

if isReleaseSet && release != "" {
if isReleaseSet {
derivationTypesRequested += 1
derivationType = "release"
}
Expand Down

0 comments on commit 64fb92d

Please sign in to comment.