summaryrefslogtreecommitdiffstats
path: root/ovh/soapi/zoneImport
diff options
context:
space:
mode:
authorEUcancER <root@euer.krebsco.de>2012-10-05 10:46:47 +0200
committerEUcancER <root@euer.krebsco.de>2012-10-05 10:46:47 +0200
commitc5fcba52713424c1653b802b4090bb182782362d (patch)
tree1cce378e27e4a5672672185f5c93ee2a25a1c224 /ovh/soapi/zoneImport
parent07939d80687399a8ad2fff0242b708013018cc14 (diff)
parent6c89839b7fc344608e61c8916ac9d9925fa98d14 (diff)
Merge branch 'master' of github.com:krebscode/painload
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)