forked from mirrors/thatmattlove-hyperglass
remove legacy references to display_name
This commit is contained in:
parent
47fc55fb08
commit
768e3c9749
2 changed files with 7 additions and 7 deletions
|
|
@ -108,7 +108,7 @@ class NetmikoConnection(SSHConnection):
|
|||
log.error(str(scrape_error))
|
||||
raise DeviceTimeout(
|
||||
params.messages.connection_error,
|
||||
device_name=self.device.display_name,
|
||||
device_name=self.device.name,
|
||||
proxy=None,
|
||||
error=params.messages.request_timeout,
|
||||
)
|
||||
|
|
@ -121,14 +121,14 @@ class NetmikoConnection(SSHConnection):
|
|||
|
||||
raise AuthError(
|
||||
params.messages.connection_error,
|
||||
device_name=self.device.display_name,
|
||||
device_name=self.device.name,
|
||||
proxy=None,
|
||||
error=params.messages.authentication_error,
|
||||
)
|
||||
if not responses:
|
||||
raise ScrapeError(
|
||||
params.messages.connection_error,
|
||||
device_name=self.device.display_name,
|
||||
device_name=self.device.name,
|
||||
proxy=None,
|
||||
error=params.messages.no_response,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ class ScrapliConnection(SSHConnection):
|
|||
log.error(err)
|
||||
raise DeviceTimeout(
|
||||
params.messages.connection_error,
|
||||
device_name=self.device.display_name,
|
||||
device_name=self.device.name,
|
||||
proxy=None,
|
||||
error=params.messages.request_timeout,
|
||||
)
|
||||
|
|
@ -139,7 +139,7 @@ class ScrapliConnection(SSHConnection):
|
|||
|
||||
raise AuthError(
|
||||
params.messages.connection_error,
|
||||
device_name=self.device.display_name,
|
||||
device_name=self.device.name,
|
||||
proxy=None,
|
||||
error=params.messages.authentication_error,
|
||||
)
|
||||
|
|
@ -147,7 +147,7 @@ class ScrapliConnection(SSHConnection):
|
|||
log.error(err)
|
||||
raise ScrapeError(
|
||||
params.messages.connection_error,
|
||||
device_name=self.device.display_name,
|
||||
device_name=self.device.name,
|
||||
proxy=None,
|
||||
error=params.messages.no_response,
|
||||
)
|
||||
|
|
@ -155,7 +155,7 @@ class ScrapliConnection(SSHConnection):
|
|||
if not responses:
|
||||
raise ScrapeError(
|
||||
params.messages.connection_error,
|
||||
device_name=self.device.display_name,
|
||||
device_name=self.device.name,
|
||||
proxy=None,
|
||||
error=params.messages.no_response,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue