Skip to content

Commit

Permalink
Make moab get_metrics more tolerant of numeric parameters sometimes b…
Browse files Browse the repository at this point in the history
…eing strings
  • Loading branch information
tabaer committed May 10, 2017
1 parent 8359c75 commit 78692e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moab/python_modules/moab.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def get_metrics():
if ( 'moab_server' in params ):
command.append("--host=%s" % params['moab_server'])
if ( 'moab_port' in params ):
command.append("--port=%d" % params['moab_port'])
command.append("--port=%s" % str(params['moab_port']))
if ( 'timeout' in params ):
command.append("--timeout=%d" % params['timeout'])
command.append("--timeout=%s" % str(params['timeout']))
if ( 'debug' in params ):
print str(command)

Expand Down

0 comments on commit 78692e4

Please sign in to comment.