Skip to content

Commit

Permalink
Merge pull request cavebeat#13 from cavebeat/minus-beta
Browse files Browse the repository at this point in the history
remove beta
  • Loading branch information
cavebeat authored Mar 19, 2018
2 parents 2fe001a + 5e3ff0d commit bcae18b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gandi-live-dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Created on 13 Aug 2017
http://doc.livedns.gandi.net/
http://doc.livedns.gandi.net/#api-endpoint -> https://dns.beta.gandi.net/api/v5/
http://doc.livedns.gandi.net/#api-endpoint -> https://dns.gandi.net/api/v5/
'''

import requests, json
Expand Down Expand Up @@ -71,7 +71,7 @@ def update_records(uuid, dynIP, subdomain):
-H 'X-Api-Key: XXX' \
-d '{"rrset_ttl": 10800,
"rrset_values": ["<VALUE>"]}' \
https://dns.beta.gandi.net/api/v5/zones/<UUID>/records/<NAME>/<TYPE>
https://dns.gandi.net/api/v5/zones/<UUID>/records/<NAME>/<TYPE>
'''
url = config.api_endpoint+ '/zones/' + uuid + '/records/' + subdomain + '/A'
payload = {"rrset_ttl": config.ttl, "rrset_values": [dynIP]}
Expand Down Expand Up @@ -127,4 +127,4 @@ def main(force_update, verbosity):





0 comments on commit bcae18b

Please sign in to comment.