Skip to content

Commit b46fe2c

Browse files
committed
fix
1 parent 70e8d71 commit b46fe2c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

acceptance/testenv/loaded.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ func (l *loadedEnv) Name() string {
2828

2929
// Configure implemets config.Loader interface
3030
func (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) {

0 commit comments

Comments
 (0)