mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
Fix hostTags, when there is no tag the hostTags is a empty list
This commit is contained in:
parent
e40a7945db
commit
b06d477425
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user