File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ func (l *loadedEnv) Name() string {
2828
2929// Configure implemets config.Loader interface
3030func (l * loadedEnv ) Configure (cfg * config.Config ) error {
31- if cfg .IsAzure () {
32- cfg .Credentials = l .v .creds
33- }
3431 for _ , a := range config .ConfigAttributes {
3532 if ! a .IsZero (cfg ) {
3633 continue
@@ -47,6 +44,9 @@ func (l *loadedEnv) Configure(cfg *config.Config) error {
4744 }
4845 }
4946 }
47+ if cfg .IsAzure () {
48+ cfg .Credentials = l .v .creds
49+ }
5050 return nil
5151}
5252
@@ -103,10 +103,9 @@ func (l *loadedEnv) metadataServer(seed *config.Config) *httptest.Server {
103103 configurations := map [string ]* config.Config {
104104 seed .CanonicalHostName (): seed ,
105105 accountHost : {
106- Loaders : []config.Loader {l },
107- Host : accountHost ,
108- AccountID : seed .AccountID ,
109- Credentials : l .v .creds ,
106+ Loaders : []config.Loader {l },
107+ Host : accountHost ,
108+ AccountID : seed .AccountID ,
110109 },
111110 }
112111 return httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
You can’t perform that action at this time.
0 commit comments