From 3dcd5cf2a9650a8d91afbbfaab49ee054ddd6185 Mon Sep 17 00:00:00 2001 From: EUcancER Date: Mon, 16 Jul 2012 16:40:17 +0200 Subject: fix zoneEntryAdd --- ovh/soapi/zoneEntryAdd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ovh/soapi') diff --git a/ovh/soapi/zoneEntryAdd b/ovh/soapi/zoneEntryAdd index bf1f4a92..20ecd1fd 100755 --- a/ovh/soapi/zoneEntryAdd +++ b/ovh/soapi/zoneEntryAdd @@ -20,14 +20,14 @@ soap = WSDL.Proxy(wsdl) username = environ['KREBS_OVH_USER'] password = environ['KREBS_OVH_PASS'] -domain = argv[2] -subdomain = argv[3] -fieldtype = argv[4] -target = argv[5] +domain = argv[1] +subdomain = argv[2] if argv[2] is not " " else "" +fieldtype = argv[3] +target = argv[4] session = soap.login(username, password, 'de', 0) -result = soap.zoneEntryAdd(session, domain, subdomain, fieldtype, target) +result = soap.zoneEntryAdd(session, domain, subdomain, fieldtype, target,1) print dumps(result, sort_keys=True, indent=2, default=default) soap.logout(session) -- cgit v1.2.3 From ddb297aab4c7c58aeb3cc1fdb3e1ef770fc18c54 Mon Sep 17 00:00:00 2001 From: EUcancER Date: Mon, 16 Jul 2012 16:43:13 +0200 Subject: fix Makefile for new soappy --- ovh/soapi/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ovh/soapi') diff --git a/ovh/soapi/Makefile b/ovh/soapi/Makefile index 8cc257ea..15ef8f3f 100644 --- a/ovh/soapi/Makefile +++ b/ovh/soapi/Makefile @@ -21,5 +21,5 @@ src/SOAPpy: src src/SOAPpy/build/lib/SOAPpy: src/SOAPpy cd $< && python setup.py build -SOAPpy: src/SOAPpy/build/lib/SOAPpy +SOAPpy: src/SOAPpy/build/lib.linux-x86_64-2.6/SOAPpy ln -snf $< -- cgit v1.2.3