Add advices to connection failure
This commit is contained in:
parent
4f78c401aa
commit
f0c9439947
@ -15,8 +15,13 @@ class RedfishException(Exception):
|
||||
class ConnectionFailureException(RedfishException):
|
||||
def __init__(self, message, **kwargs):
|
||||
super(ConnectionFailureException, self).__init__(message, **kwargs)
|
||||
self.advices = '1- Check if the url is the correct one\n' + \
|
||||
'2- Check if your device is answering on the network\n'
|
||||
self.advices = \
|
||||
'1- Check if the url is the correct one\n' + \
|
||||
'2- Check if your device is answering on the network\n' + \
|
||||
'3- Check if your device has a valid trusted certificat\n' + \
|
||||
' You can use openssl to validate it using the command :\n' + \
|
||||
' openssl s_client -showcerts -connect <server>:443\n' + \
|
||||
'4- Use option "--insecure" to connect without checking certificate\n'
|
||||
|
||||
|
||||
class InvalidRedfishContentException(RedfishException):
|
||||
|
Loading…
Reference in New Issue
Block a user