Skip to content

Commit

Permalink
Add timeout for get BMC version!
Browse files Browse the repository at this point in the history
  • Loading branch information
bolv authored and tiantianlv committed Apr 11, 2019
1 parent ccf1243 commit b2fc0d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_bmc_version(self):
bmc_version = None

bmc_version_key = "OpenBMC Version"
bmc_info_req = requests.get(self.bmc_info_url)
bmc_info_req = requests.get(self.bmc_info_url, timeout=60)
if bmc_info_req.status_code == 200:
bmc_info_json = bmc_info_req.json()
bmc_info = bmc_info_json.get('Information')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_bmc_version(self):
bmc_version = None

bmc_version_key = "OpenBMC Version"
bmc_info_req = requests.get(self.bmc_info_url)
bmc_info_req = requests.get(self.bmc_info_url, timeout=60)
if bmc_info_req.status_code == 200:
bmc_info_json = bmc_info_req.json()
bmc_info = bmc_info_json.get('Information')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_bmc_version(self):
bmc_version = None

bmc_version_key = "OpenBMC Version"
bmc_info_req = requests.get(self.bmc_info_url)
bmc_info_req = requests.get(self.bmc_info_url, timeout=60)
if bmc_info_req.status_code == 200:
bmc_info_json = bmc_info_req.json()
bmc_info = bmc_info_json.get('Information')
Expand Down

0 comments on commit b2fc0d2

Please sign in to comment.