Skip to content

Commit

Permalink
Change how private ips are appended to the list (#4517)
Browse files Browse the repository at this point in the history
  • Loading branch information
vthiebaut10 committed Mar 11, 2022
1 parent 4e4b9c2 commit 55eee43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssh/azext_ssh/ip_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_ssh_ip(cmd, resource_group, vm_name, use_private_ip):
if public_ip and public_ip.ip_address:
return public_ip.ip_address
if ip_config.private_ip_address:
private_ips += ip_config.private_ip_address
private_ips.append(ip_config.private_ip_address)

if len(private_ips) > 0:
logger.warning("No public IP detected, attempting private IP (you must bring your own connectivity).")
Expand Down

0 comments on commit 55eee43

Please sign in to comment.