Skip to content

Commit 6036b15

Browse files
author
Ben Astell
committed
fix console fetching
1 parent ab82d1b commit 6036b15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyatsimagebuilder/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ def _process_testbed_file(profile, yaml_contents):
508508
if dev.get(key):
509509
testbed_info[dev_name][key] = dev[key]
510510
if dev.get('connections', {}).get('a'):
511-
port = dev[key]['a'].get('port')
512-
ip = dev[key]['a'].get('ip')
511+
port = dev['connections']['a'].get('port')
512+
ip = dev['connections']['a'].get('ip')
513513
if ip and port:
514514
testbed_info[dev_name]['console'] = f'{ip}:{port}'
515515

0 commit comments

Comments
 (0)