fix(datasource/CloudSigma): Populate local IPv4 address properly

This commit is contained in:
Kiril Vladimirov
2014-10-23 14:12:09 +03:00
parent c5fada6e69
commit b6062f0644
2 changed files with 42 additions and 6 deletions

View File

@@ -133,12 +133,8 @@ func TestServerContextFetchMetadata(t *testing.T) {
t.Error("Public SSH Keys are not being read properly")
}
if metadata.LocalIPv4 != "" {
t.Errorf("Local IP is not empty but %s instead", metadata.LocalIPv4)
}
if metadata.PublicIPv4 != "31.171.251.74" {
t.Errorf("Local IP is not 31.171.251.74 but %s instead", metadata.PublicIPv4)
t.Errorf("Public IP is not 31.171.251.74 but %s instead", metadata.PublicIPv4)
}
}