fix no language attr value in mesh (#2182)

This commit is contained in:
Gao Hongtao 2019-01-19 10:48:54 +08:00 committed by 吴晟 Wu Sheng
parent 5a7eb5656a
commit 334dd03429
2 changed files with 4 additions and 0 deletions

View File

@ -216,6 +216,8 @@ public class MetadataQueryEsDAO extends EsDAO implements IMetadataQueryDAO {
serviceInstance.getAttributes().add(new Attribute(ServiceInstanceInventory.PropertyUtil.IPV4S, ipv4));
}
}
} else {
serviceInstance.setLanguage(Language.UNKNOWN);
}
serviceInstances.add(serviceInstance);

View File

@ -241,6 +241,8 @@ public class H2MetadataQueryDAO implements IMetadataQueryDAO {
serviceInstance.getAttributes().add(new Attribute(ServiceInstanceInventory.PropertyUtil.IPV4S, ipv4));
}
}
} else {
serviceInstance.setLanguage(Language.UNKNOWN);
}
serviceInstances.add(serviceInstance);