From 5eb0dd2aa5e5e4d07da0b8f663bb3f2f77bc19e5 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 5 Oct 2012 03:24:08 +0200 Subject: make soapi usable for non-krebs urls --- ovh/soapi/domainCapabilities | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ovh/soapi/domainCapabilities') diff --git a/ovh/soapi/domainCapabilities b/ovh/soapi/domainCapabilities index dad8311d..a438e0b8 100755 --- a/ovh/soapi/domainCapabilities +++ b/ovh/soapi/domainCapabilities @@ -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.domainCapabilities(session, 'krebsco.de') +result = soap.domainCapabilities(session, domain) print dumps(result, sort_keys=True, indent=2, default=default) soap.logout(session) -- cgit v1.2.3