summaryrefslogtreecommitdiffstats
path: root/ovh/soapi/domainList
diff options
context:
space:
mode:
Diffstat (limited to 'ovh/soapi/domainList')
-rwxr-xr-xovh/soapi/domainList4
1 files changed, 3 insertions, 1 deletions
diff --git a/ovh/soapi/domainList b/ovh/soapi/domainList
index b089f6a4..342eec72 100755
--- a/ovh/soapi/domainList
+++ b/ovh/soapi/domainList
@@ -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']