Skip to content

Commit

Permalink
correct DNS error
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Mar 26, 2024
1 parent 48be1c1 commit 3de7259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/hobby-ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(
self.name = name

if not hostname:
hostname = f"{name}"
hostname = f"{name}.{DOMAIN}"
self.hostname = hostname

self.region = region
Expand Down Expand Up @@ -152,7 +152,7 @@ def create_dns_entry(self, type, name, data, ttl=30):
def create_dns_entry_for_instance(self):
if not self.droplet:
return
self.record = self.create_dns_entry(type="A", name=self.hostname, data=self.get_public_ip())
self.record = self.create_dns_entry(type="A", name=self.name, data=self.get_public_ip())
return self.record

def destroy_self(self, retries=3):
Expand Down

0 comments on commit 3de7259

Please sign in to comment.