Skip to content

Commit

Permalink
Merge branch 'master' of github.com:exoscale/egoscale into pej/sc-827…
Browse files Browse the repository at this point in the history
…23/egoscale-v3-implement-a-credentials-provider
  • Loading branch information
pierre-emmanuelJ committed Jan 18, 2024
2 parents 27ac8e6 + 1ace995 commit 1267e21
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Changelog
=========

Unreleased
----------
0.102.3
-------

- v2: fix issue with iam role labels #614

Expand Down
11 changes: 11 additions & 0 deletions v3/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions v3/generator/client/client.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ const (
{{ .Enum }}
)

// Zone gets the zone name from the URL.
func (u URL) Zone() (string, bool) {
for zone, url := range Zones {
if url == u {
return zone, true
}
}

return "", false
}

// Zones represents a list of all Exoscale zone.
var Zones map[string]URL = map[string]URL{
{{ .Zones }}
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
package version

// Version represents the current egoscale version.
const Version = "0.102.2"
const Version = "0.102.3"

0 comments on commit 1267e21

Please sign in to comment.