Skip to content

Commit

Permalink
Fix Azure hostname assignment (#1930)
Browse files Browse the repository at this point in the history
  • Loading branch information
r4victor authored Oct 31, 2024
1 parent 6959dab commit 404c77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dstack/_internal/core/backends/azure/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def create_instance(
vm=vm,
)
hostname = public_ip
if allocate_public_ip:
if not allocate_public_ip:
hostname = private_ip
return JobProvisioningData(
backend=instance_offer.backend,
Expand Down

0 comments on commit 404c77d

Please sign in to comment.