mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
remove doubles before save (#5341)
* remove doubles before save * Update ResourceManagerImpl.java adding final statement Co-authored-by: DK101010 <dirk.klahre@itelligence.de>
This commit is contained in:
parent
089887646f
commit
83dd294940
@ -196,6 +196,7 @@ import com.cloud.vm.VmDetailConstants;
|
|||||||
import com.cloud.vm.dao.UserVmDetailsDao;
|
import com.cloud.vm.dao.UserVmDetailsDao;
|
||||||
import com.cloud.vm.dao.VMInstanceDao;
|
import com.cloud.vm.dao.VMInstanceDao;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
|
import java.util.HashSet;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class ResourceManagerImpl extends ManagerBase implements ResourceManager, ResourceService, Manager {
|
public class ResourceManagerImpl extends ManagerBase implements ResourceManager, ResourceService, Manager {
|
||||||
@ -1748,13 +1749,12 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final List<String> hostTags = cmd.getHostTags();
|
final List<String> hostTags = cmd.getHostTags();
|
||||||
if (hostTags != null) {
|
if (hostTags != null) {
|
||||||
if (s_logger.isDebugEnabled()) {
|
if (s_logger.isDebugEnabled()) {
|
||||||
s_logger.debug("Updating Host Tags to :" + hostTags);
|
s_logger.debug("Updating Host Tags to :" + hostTags);
|
||||||
}
|
}
|
||||||
_hostTagsDao.persist(hostId, hostTags);
|
_hostTagsDao.persist(hostId, new ArrayList(new HashSet<String>(hostTags)));
|
||||||
}
|
}
|
||||||
|
|
||||||
final String url = cmd.getUrl();
|
final String url = cmd.getUrl();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user