diff options
Diffstat (limited to 'ovh/soapi/zoneEntryList')
-rwxr-xr-x | ovh/soapi/zoneEntryList | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ovh/soapi/zoneEntryList b/ovh/soapi/zoneEntryList index 00f56958..af37c112 100755 --- a/ovh/soapi/zoneEntryList +++ b/ovh/soapi/zoneEntryList @@ -1,6 +1,7 @@ #!/usr/bin/python from os import environ +from os.path import dirname, realpath from SOAPpy import WSDL from json import dumps, JSONEncoder @@ -13,7 +14,8 @@ def default(o): return list(iterable) return JSONEncoder.default(o) -soap = WSDL.Proxy('https://www.ovh.com/soapi/soapi-re-1.24.wsdl') +wsdl = dirname(realpath(__file__)) + '/soapi-re-1.24.wsdl' +soap = WSDL.Proxy(wsdl) username = environ['KREBS_OVH_USER'] password = environ['KREBS_OVH_PASS'] |