summaryrefslogtreecommitdiffstats
path: root/ovh/soapi/zoneImport
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2012-10-05 03:24:08 +0200
committermakefu <github@syntax-fehler.de>2012-10-05 03:24:08 +0200
commit5eb0dd2aa5e5e4d07da0b8f663bb3f2f77bc19e5 (patch)
treed9ef8921f38b47adbdfea0b4f12429b31439deb8 /ovh/soapi/zoneImport
parent462a1a45ec08fd5e5e010d266eb3871386511b84 (diff)
make soapi usable for non-krebs urls
Diffstat (limited to 'ovh/soapi/zoneImport')
-rwxr-xr-xovh/soapi/zoneImport3
1 files changed, 2 insertions, 1 deletions
diff --git a/ovh/soapi/zoneImport b/ovh/soapi/zoneImport
index 141fb4a2..42d46caf 100755
--- a/ovh/soapi/zoneImport
+++ b/ovh/soapi/zoneImport
@@ -21,12 +21,13 @@ soap = WSDL.Proxy(wsdl)
username = environ['KREBS_OVH_USER']
password = environ['KREBS_OVH_PASS']
+domain = environ.get('KREBS_OVH_DOMAIN','krebsco.de')
zone = join(stdin.readlines(),'')
session = soap.login(username, password, 'en', 0)
-result = soap.zoneImport(session, 'krebsco.de', zone)
+result = soap.zoneImport(session, domain, zone)
print result
soap.logout(session)