Skip to content

Commit 8cf5da9

Browse files
committed
Print the correct network
1 parent 6801f4c commit 8cf5da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/extract_droplet_ipv4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
print(droplet_info[0]["networks"]["v4"], file=sys.stderr)
2323
for network in droplet_info[0]["networks"]["v4"]:
2424
if network["type"] == "public":
25-
print(droplet_info[0]["networks"]["v4"][0]["ip_address"]) # noqa: T201
25+
print(network["ip_address"]) # noqa: T201
2626
break
2727
else:
2828
sys.exit("No public ipv4 found")

0 commit comments

Comments
 (0)