Skip to content

Commit 5e6cef3

Browse files
committed
Clarified the exception message raised when unable to access the service root
Signed-off-by: Mike Raineri <michael.raineri@dell.com>
1 parent df7f822 commit 5e6cef3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/redfish/rest/v1.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,11 @@ def get_root_object(self):
611611
self.root = {}
612612
self.root_resp = resp
613613
return
614+
if resp.status == 503:
615+
raise ServerDownOrUnreachableError("Service is busy, " \
616+
"return code: %d" % resp.status,response=resp)
614617
if resp.status != 200:
615-
raise ServerDownOrUnreachableError("Server not reachable, " \
618+
raise ServerDownOrUnreachableError("Service not able to provide the service root, " \
616619
"return code: %d" % resp.status,response=resp)
617620

618621
content = resp.text

0 commit comments

Comments
 (0)