ADD: keywords api support

This commit is contained in:
jagreene authored and Madison May committed 2015-07-07 11:51:49 -04:00
1 parent c9a6585086
commit b5d0aafc4e
10 files changed
+80 -30

No files matched your search

+2
View File
@@ -29,6 +29,8 @@ def api_handler(arg, cloud, api, url_params = {"batch":False, "api_key":None}, *
if apis:
url += "&apis=%s" % ",".join(apis)
print url
response = requests.post(url, data=json_data, headers=JSON_HEADERS)
if response.status_code == 503 and cloud != None:
raise IndicoError("Private cloud '%s' does not include api '%s'" % (cloud, api))