Skip to content

Commit

Permalink
Fix: version.go to receive exact provider binary version
Browse files Browse the repository at this point in the history
  • Loading branch information
willguibr committed Sep 26, 2023
1 parent 8be6bce commit b948bd2
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions zpa/common/version.go
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
package common

import "context"

var (
version = "3.0.2"
// ResourceName is resource name without databricks_ prefix
ResourceName contextKey = 1
// Provider is the current instance of provider
Provider contextKey = 2
// Current is the current name of integration test
Current contextKey = 3
// If current resource is data
IsData contextKey = 4
// apiVersion
Api contextKey = 5
)

type contextKey int

func (k contextKey) GetOrUnknown(ctx context.Context) string {
rn, ok := ctx.Value(k).(string)
if !ok {
return "unknown"
}
return rn
}

// Version returns version of provider
func Version() string {
return version
Expand Down

0 comments on commit b948bd2

Please sign in to comment.