Skip to content

Commit e454a33

Browse files
committed
bugfix locationCode (again)
1 parent 39726a3 commit e454a33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netfoundry/demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ def main():
140140
else:
141141
raise Exception("ERROR: failed to find a network named \"{:s}\"".format(network_name))
142142

143-
# existing hosted ERs
143+
# existing hosted routers
144144
hosted_edge_routers = network.edge_routers(only_hosted=True)
145145
# a list of places where Endpoints are dialing from
146146

147-
# a list of locations to place one hosted ER
147+
# a list of locations to place a hosted router
148148
fabric_placements = list()
149149
if args.location_codes:
150150
for location in args.location_codes:
@@ -163,7 +163,7 @@ def main():
163163
"#"+location['provider']
164164
],
165165
provider=args.provider,
166-
location_code=location
166+
location_code=location['locationCode']
167167
)
168168
hosted_edge_routers += [er]
169169
print("INFO: Placed Edge Router in {provider} ({location_name})".format(

0 commit comments

Comments
 (0)