Ottomata has submitted this change and it was merged.

Change subject: Casting port to int in case it comes from CLI
......................................................................


Casting port to int in case it comes from CLI

Change-Id: Ic6d9bb60bea828d6826f7a0cd6477dcb39e9880a
---
M check_ganglia/ganglia.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Ottomata: Verified; Looks good to me, approved



diff --git a/check_ganglia/ganglia.py b/check_ganglia/ganglia.py
index ab5f776..dc19e2e 100644
--- a/check_ganglia/ganglia.py
+++ b/check_ganglia/ganglia.py
@@ -46,7 +46,7 @@
         self.server = server
         if port is None:
             port = DEFAULT_GMOND_PORT
-        self.port = port
+        self.port = int(port)
 
     def query(self, host, **kwargs):
         try:

-- 
To view, visit https://gerrit.wikimedia.org/r/107720
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic6d9bb60bea828d6826f7a0cd6477dcb39e9880a
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/check_ganglia
Gerrit-Branch: master
Gerrit-Owner: Ottomata <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to