Skip to content

Commit

Permalink
fix(specsize): fixing spec size datatype
Browse files Browse the repository at this point in the history
* Ensure specs_size is an int

* Fix unit tests
  • Loading branch information
treydock authored Feb 16, 2020
1 parent 9fcde29 commit 177a3e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_vmware_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,8 +1072,8 @@ def test_vmware_disconnect():
'127.0.0.1',
'root',
'password',
5000,
collect_only,
5000,
)

# Mock that we have a connection
Expand Down Expand Up @@ -1107,8 +1107,8 @@ def test_counter_ids():
'127.0.0.1',
'root',
'password',
5000,
collect_only,
5000,
)
collector.content = content

Expand Down
2 changes: 1 addition & 1 deletion vmware_exporter/vmware_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, host, username, password, collect_only, specs_size, ignore_ss
self.password = password
self.ignore_ssl = ignore_ssl
self.collect_only = collect_only
self.specs_size = specs_size
self.specs_size = int(specs_size)

def _create_metric_containers(self):
metric_list = {}
Expand Down

0 comments on commit 177a3e2

Please sign in to comment.