Adding a check to make sure UseInstanceMetadata flag is true to get data from metadata.

This commit is contained in:
Rohit Jaini
2019-03-04 19:37:49 -08:00
parent 7955a2865c
commit e0f51bcc2e
2 changed files with 33 additions and 23 deletions

View File

@@ -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 {