Skip to content

Commit f6f3ccb

Browse files
committed
Added environment variable to change the Scaleway Metadata URL
1 parent ce1e193 commit f6f3ccb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/api/api.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,6 +1719,9 @@ func (s *ScalewayAPI) DisableAccountAPI() {
17191719
// EnableMetadataAPI enable metadataAPI
17201720
func (s *ScalewayAPI) EnableMetadataAPI() {
17211721
s.APIUrl = MetadataAPI
1722+
if os.Getenv("SCW_METADATA_URL") != "" {
1723+
s.APIUrl = os.Getenv("SCW_METADATA_URL")
1724+
}
17221725
s.isMetadata = true
17231726
}
17241727

0 commit comments

Comments
 (0)