Skip to content

Commit

Permalink
Increasing timeout for marketplace API (#170)
Browse files Browse the repository at this point in the history
* Update marketplace.py

* Make black changes

(cherry picked from commit e42d39c61bcfe062f3ef4a2b82b6e6fdc114ce36)
  • Loading branch information
nisarg131 authored and abhijeetkaurav1st committed Mar 6, 2023
1 parent ae43fa5 commit 4745c84
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion calm/dsl/api/marketplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ def __init__(self, connection):
super().__init__(connection, resource_type="calm_marketplace_items")
self.VARIABLE_VALUES = self.ITEM + "/variables/{}/values"

# https://jira.nutanix.com/browse/CALM-33232
# Marketplace API taking more than 30s so setting it to 300s
def variable_values(self, uuid, var_uuid, payload={}):
url = self.VARIABLE_VALUES.format(uuid, var_uuid)
return self.connection._call(
url, verify=False, method=REQUEST.METHOD.POST, request_json=payload
url,
verify=False,
method=REQUEST.METHOD.POST,
request_json=payload,
timeout=(5, 300),
)

0 comments on commit 4745c84

Please sign in to comment.