summaryrefslogtreecommitdiffstats
path: root/ovh/soapi/zoneEntryList
diff options
context:
space:
mode:
Diffstat (limited to 'ovh/soapi/zoneEntryList')
-rwxr-xr-xovh/soapi/zoneEntryList3
1 files changed, 2 insertions, 1 deletions
diff --git a/ovh/soapi/zoneEntryList b/ovh/soapi/zoneEntryList
index af37c112..63d0f1c6 100755
--- a/ovh/soapi/zoneEntryList
+++ b/ovh/soapi/zoneEntryList
@@ -19,10 +19,11 @@ soap = WSDL.Proxy(wsdl)
username = environ['KREBS_OVH_USER']
password = environ['KREBS_OVH_PASS']
+domain = environ.get('KREBS_OVH_DOMAIN','krebsco.de')
session = soap.login(username, password, 'de', 0)
-result = soap.zoneEntryList(session, 'krebsco.de')
+result = soap.zoneEntryList(session, domain)
print dumps(result, sort_keys=True, indent=2, default=default)
soap.logout(session)