Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a54a539

Browse files
Schroeder, JeremySchroeder, Jeremy
authored andcommitted
added timeout to line 55
1 parent b976f2a commit a54a539

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

orionsdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
from .swisclient import SwisClient
1616

1717

18-
__version__ = "0.0.6"
18+
__version__ = "0.0.7"

orionsdk/swisclient.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def update(self, uri, **properties):
4040
self._req("POST", uri, properties)
4141

4242
def bulkupdate(self, uris, **properties):
43-
self._req("POST", "BulkUpdate",
43+
self._req("POST", "BulkUpdate",
4444
{'uris': uris, 'properties': properties})
4545

4646
def delete(self, uri):
@@ -51,7 +51,8 @@ def _req(self, method, frag, data=None):
5151
data=json.dumps(data, default=_json_serial),
5252
verify=self.verify,
5353
auth=self.credentials,
54-
headers={'Content-Type': 'application/json'})
54+
headers={'Content-Type': 'application/json'},
55+
timeout=30)
5556

5657
# try to extract reason from response when request returns error
5758
if 400 <= resp.status_code < 600:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name="orionsdk",
13-
version="0.0.6", # Update also in __init__ ;
13+
version="0.0.7", # Update also in __init__ ;
1414
description="Python API for the SolarWinds Orion SDK",
1515
long_description="Python client for interacting with the SolarWinds Orion API",
1616
author="SolarWinds",

0 commit comments

Comments
 (0)