diff options
author | makefu <github@syntax-fehler.de> | 2012-10-05 03:24:08 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2012-10-05 03:24:08 +0200 |
commit | 5eb0dd2aa5e5e4d07da0b8f663bb3f2f77bc19e5 (patch) | |
tree | d9ef8921f38b47adbdfea0b4f12429b31439deb8 /ovh/soapi/zoneExport | |
parent | 462a1a45ec08fd5e5e010d266eb3871386511b84 (diff) |
make soapi usable for non-krebs urls
Diffstat (limited to 'ovh/soapi/zoneExport')
-rwxr-xr-x | ovh/soapi/zoneExport | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ovh/soapi/zoneExport b/ovh/soapi/zoneExport index 7659d647..7747ded4 100755 --- a/ovh/soapi/zoneExport +++ b/ovh/soapi/zoneExport @@ -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.zoneExport(session, 'krebsco.de') +result = soap.zoneExport(session, domain) print result soap.logout(session) |