Adding a check to make sure UseInstanceMetadata flag is true to get data from metadata.
This commit is contained in:
@@ -1676,7 +1676,8 @@ func validateEmptyConfig(t *testing.T, config string) {
|
||||
func TestGetZone(t *testing.T) {
|
||||
cloud := &Cloud{
|
||||
Config: Config{
|
||||
Location: "eastus",
|
||||
Location: "eastus",
|
||||
UseInstanceMetadata: true,
|
||||
},
|
||||
}
|
||||
testcases := []struct {
|
||||
|
Reference in New Issue
Block a user