Skip to content

Commit 0648759

Browse files
committed
Fixed problems with changes to the Port interface
1 parent 725d868 commit 0648759

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rest/helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ def format_ports(ports):
128128
def format_port(port):
129129
port_value = {'name': port.name, 'direction': port._direction}
130130
if port._direction == 'Uses':
131-
versionIdx = port.using.repoId.rfind(':')
132-
version = port.using.repoId[versionIdx:]
131+
version_idx = port._using.repoId.rfind(':')
132+
version = port._using.repoId[version_idx:]
133133

134-
port_value['repId'] = port.using.repoId
134+
port_value['repId'] = port._using.repoId
135135
port_value['idl'] = {
136136
'type': port._using.name,
137137
'namespace': port._using.nameSpace,

0 commit comments

Comments
 (0)