Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1170 from humblec/env
Browse files Browse the repository at this point in the history
Make env also used while naming provisioner.
  • Loading branch information
k8s-ci-robot authored May 14, 2019
2 parents 65ee173 + b984892 commit 88aaa1c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -905,12 +905,10 @@ func main() {
provName := provisionerName
provEnvName := os.Getenv(provisionerNameKey)

// Precedence is given for ProvisionerNameKey
if provEnvName != "" && *id != "" {
// Precedence is given for ProvisionerNameKey if both are set
if provEnvName != "" && *id != "" || provEnvName != "" {
provName = provEnvName
}

if provEnvName == "" && *id != "" {
} else if *id != "" {
provName = *id
}

Expand Down

0 comments on commit 88aaa1c

Please sign in to comment.