Skip to content

Commit 464f3c8

Browse files
author
Sina Kashipazha
committed
Rename gethostTags to getHostTags.
1 parent 6347860 commit 464f3c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/integrations/prometheus/src/main/java/org/apache/cloudstack/metrics/PrometheusExporterImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private void addHostMetrics(final List<Item> metricsList, final long dcId, final
142142
int isDedicated = (dr != null) ? 1 : 0;
143143
metricsList.add(new ItemHostIsDedicated(zoneName, zoneUuid, host.getName(), host.getUuid(), host.getPrivateIpAddress(), isDedicated));
144144

145-
List<String> hostTags = _hostTagsDao.gethostTags(host.getId());
145+
List<String> hostTags = _hostTagsDao.getHostTags(host.getId());
146146
String hosttags = StringUtils.join(hostTags, ",");
147147
for (String tag : hostTags) {
148148
Integer current = totalHosts.get(tag) != null ? totalHosts.get(tag) : 0;
@@ -254,7 +254,7 @@ private void addVMMetrics(final List<Item> metricsList, final long dcId, final S
254254
}
255255

256256
List<String> allHostTags = hostDao.listAll().stream()
257-
.flatMap( h -> _hostTagsDao.gethostTags(h.getId()).stream())
257+
.flatMap( h -> _hostTagsDao.getHostTags(h.getId()).stream())
258258
.distinct()
259259
.collect(Collectors.toList());
260260

0 commit comments

Comments
 (0)