terraform: fix security rule reconciliation on Azure (#3454)

* fix security rule reconciliation on azure
* fix simulated patch version upgrade
This commit is contained in:
Adrian Stobbe 2024-11-04 08:59:16 +01:00 committed by GitHub
parent aa7d47ed5f
commit 54058eed2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 97 additions and 121 deletions

View file

@ -301,10 +301,10 @@ func getCLIPath(cliPathFlag string) (string, error) {
pathCLI := os.Getenv("PATH_CLI")
var relCLIPath string
switch {
case pathCLI != "":
relCLIPath = pathCLI
case cliPathFlag != "":
relCLIPath = cliPathFlag
case pathCLI != "":
relCLIPath = pathCLI
default:
return "", errors.New("neither 'PATH_CLI' nor 'cli' flag set")
}