Skip to content

Commit d114655

Browse files
Use self.args in _addnet
1 parent a430a44 commit d114655

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/heapwatch/heapWatch.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,15 @@ def __init__(self, args):
192192
role_name = 'role_' + role
193193
for net in cp[role_name].keys():
194194
logger.debug('addnet role %s %s', role, net)
195-
self._addnet(net, self.args.port)
195+
self._addnet(net)
196196
for nre in args.tf_name_re:
197197
namere = re.compile(nre)
198198
for k,v in cp.items():
199199
if not namere.match(k):
200200
continue
201201
for net in v.keys():
202202
logger.debug('addnet re %s %s', nre, net)
203-
self._addnet(net, self.args.port)
203+
self._addnet(net)
204204
for path in args.data_dirs:
205205
if not os.path.isdir(path):
206206
continue
@@ -214,11 +214,11 @@ def __init__(self, args):
214214
logger.debug('not a datadir: %r', path)
215215
logger.debug('data dirs: %r', self.they)
216216

217-
def _addnet(self, net, port):
217+
def _addnet(self, net):
218218
if net in self.netseen:
219219
return
220220
self.netseen.add(net)
221-
net = net + ':' + port
221+
net = net + ':' + self.args.port
222222
try:
223223
ad = algodDir(net, net=net, token=self.args.token, admin_token=self.args.admin_token)
224224
self.they.append(ad)

0 commit comments

Comments
 (0)