Skip to content

Commit

Permalink
Merge pull request cloudflare#57 from sulf1ron/master
Browse files Browse the repository at this point in the history
Fix a minor bug in examples\example_update_dynamic_dns.py
  • Loading branch information
patryk committed Apr 12, 2019
2 parents 2255073 + a8e47cd commit 11cc361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example_update_dynamic_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def main():
except IndexError:
exit('usage: example-update-dynamic-dns.py fqdn-hostname')

host_name, zone_name = dns_name.split('.', 1)
host_name, zone_name = '.'.join(dns_name.split('.')[:2]), '.'.join(dns_name.split('.')[-2:])

ip_address, ip_address_type = my_ip_address()

Expand Down

0 comments on commit 11cc361

Please sign in to comment.