mirror of https://github.com/apache/jclouds.git
fix Network class name collision in Checks
This commit is contained in:
parent
9206bc0342
commit
2af7272d66
|
@ -372,8 +372,8 @@ public class Checks {
|
||||||
|
|
||||||
public static void checkNetworkConfiguration(NetworkConfiguration config) {
|
public static void checkNetworkConfiguration(NetworkConfiguration config) {
|
||||||
// required
|
// required
|
||||||
assertNotNull(config.getFenceMode(), String.format(NOT_NULL_OBJECT_FMT,
|
assertNotNull(config.getFenceMode(), String.format(OBJ_FIELD_REQ,
|
||||||
"fenceMode", "NetworkConfiguration"));
|
"NetworkConfiguration", "fenceMode"));
|
||||||
assertTrue(Network.FenceMode.ALL.contains(config.getFenceMode()), String.format(REQUIRED_VALUE_OBJECT_FMT,
|
assertTrue(Network.FenceMode.ALL.contains(config.getFenceMode()), String.format(REQUIRED_VALUE_OBJECT_FMT,
|
||||||
"fenceMode", "NetworkConfiguration", config.getFenceMode(), Iterables.toString(Network.FenceMode.ALL)));
|
"fenceMode", "NetworkConfiguration", config.getFenceMode(), Iterables.toString(Network.FenceMode.ALL)));
|
||||||
|
|
||||||
|
@ -1119,7 +1119,7 @@ public class Checks {
|
||||||
|
|
||||||
// Check optional fields
|
// Check optional fields
|
||||||
if (section.getNetworks() != null) {
|
if (section.getNetworks() != null) {
|
||||||
for (Network network : section.getNetworks()) {
|
for (org.jclouds.vcloud.director.v1_5.domain.ovf.Network network : section.getNetworks()) {
|
||||||
checkNetwork(network);
|
checkNetwork(network);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1128,7 +1128,7 @@ public class Checks {
|
||||||
checkOvfSectionType(section);
|
checkOvfSectionType(section);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void checkNetwork(Network network) {
|
public static void checkNetwork(org.jclouds.vcloud.director.v1_5.domain.ovf.Network network) {
|
||||||
assertNotNull(network, String.format(NOT_NULL_OBJ_FMT, "Network"));
|
assertNotNull(network, String.format(NOT_NULL_OBJ_FMT, "Network"));
|
||||||
|
|
||||||
// Check optional fields
|
// Check optional fields
|
||||||
|
|
Loading…
Reference in New Issue