Skip to content

Commit

Permalink
fix missing setting, added dummy valuecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
gubser committed Jun 24, 2016
1 parent 8b2e59d commit ac6fa9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ptocore/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def __init__(self, analyzer_id,
creds = {
'identifier': self.identifier,
'token': token,
'host': core_config.supervisor_host,
'host': 'localhost',
'port': core_config.supervisor_port
}
self.env['PTO_CREDENTIALS'] = json.dumps(creds)
Expand Down
3 changes: 2 additions & 1 deletion ptocore/valuechecks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ def rangecheck(value, datatype, min=None, max=None, allow_none=False):
"tcp-rtt-min": partial(rangecheck, datatype=float, min=0),
"udp-rtt-min": partial(rangecheck, datatype=float, min=0),
"udp-rtt-median": partial(rangecheck, datatype=float),
"tcp-rtt-median": partial(rangecheck, datatype=float)
"tcp-rtt-median": partial(rangecheck, datatype=float),
"dummy": partial(rangecheck, datatype=str)
}

0 comments on commit ac6fa9f

Please sign in to comment.