mirror of https://github.com/apache/cloudstack.git
Removing whitespace from tags while storing the Host tags.
This commit is contained in:
parent
f56c3d7bc5
commit
5eba3d9326
|
|
@ -63,7 +63,7 @@ public class HostTagsDaoImpl extends GenericDaoBase<HostTagVO, Long> implements
|
|||
expunge(sc);
|
||||
|
||||
for (String tag : hostTags) {
|
||||
tag.trim();
|
||||
tag = tag.trim();
|
||||
if(tag.length() > 0) {
|
||||
HostTagVO vo = new HostTagVO(hostId, tag);
|
||||
persist(vo);
|
||||
|
|
|
|||
Loading…
Reference in New Issue