Skip to content

Commit 9c03820

Browse files
committed
fix /metrics matching
1 parent 601ec14 commit 9c03820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vmware_exporter/vmware_exporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,9 +893,9 @@ def generate_latest_metrics(self, request):
893893
self.config[section]['ignore_ssl'],
894894
)
895895
metrics = yield collector.collect()
896-
896+
897897
# URI /metrics?section=default
898-
if request.path = '/metrics' and section == 'default':
898+
if request.path == b'/metrics' and section == 'default':
899899
registry = REGISTRY
900900
else:
901901
registry = CollectorRegistry()

0 commit comments

Comments
 (0)