Fix hostTags, when there is no tag the hostTags is a empty list

This commit is contained in:
Frank 2011-05-27 17:19:06 -07:00
parent e40a7945db
commit b06d477425

View File

@ -357,7 +357,7 @@ public class ResourceManagerImpl implements ResourceManager, ResourceService, Ma
bareMetalParams.put("cpuCapacity", cpuSpeed.toString());
bareMetalParams.put("memCapacity", memCapacity.toString());
bareMetalParams.put("mac", mac);
if (hostTags != null) {
if (hostTags != null && hostTags.size() > 0) {
bareMetalParams.put("hostTag", hostTags.get(0));
}
}