From 720bf2f0545fb614a586060e0d03472e44ccfaae Mon Sep 17 00:00:00 2001 From: dzikafoczka Date: Sat, 21 Dec 2024 21:58:51 +0100 Subject: [PATCH] faktury --- ec2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ec2.py b/ec2.py index ad572a1..7d9f2d7 100644 --- a/ec2.py +++ b/ec2.py @@ -209,7 +209,7 @@ def run_instance(ec2_client, launch_template_id, subnet_id): public_dns = instance_info['Reservations'][0]['Instances'][0].get('PublicDnsName') if public_ip: - return public_ip + print(f"Public IP: {public_ip}") if public_dns: print(f"Public DNS: {public_dns}")