diff options
author | root <root@monitoring.shack> | 2012-09-13 23:39:58 +0000 |
---|---|---|
committer | root <root@monitoring.shack> | 2012-09-13 23:39:58 +0000 |
commit | db849a18e1659ff28433384d2cdca2989a6d5df0 (patch) | |
tree | d600fb3f3e5f0a54b6254c85ee8a3b836ef3d90d /ovh/soapi/zoneEntryAdd | |
parent | d5d39fc3d56b021b642ee6e1d5625524ebbc4d99 (diff) | |
parent | 88d4bdc29eb9ce5f62099f2be1488ae927aa09d5 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'ovh/soapi/zoneEntryAdd')
-rwxr-xr-x | ovh/soapi/zoneEntryAdd | 10 |
1 files changed, 5 insertions, 5 deletions
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) |