Fix exception message for DuplicateBgpPeerIpException
Exception message was located under '_message' field of the exception
object, instead of the expected 'message' field.
TrivialFix
Change-Id: I4243bc7d08973d4753141ce1047913af4d16c525
(cherry picked from commit 64699728bd
)
This commit is contained in:
parent
856b865c7c
commit
41f4ec29c8
|
@ -150,9 +150,9 @@ class NetworkNotBound(n_exc.NotFound):
|
|||
|
||||
|
||||
class DuplicateBgpPeerIpException(n_exc.Conflict):
|
||||
_message = _("BGP Speaker %(bgp_speaker_id)s is already configured to "
|
||||
"peer with a BGP Peer at %(peer_ip)s, it cannot peer with "
|
||||
"BGP Peer %(bgp_peer_id)s.")
|
||||
message = _("BGP Speaker %(bgp_speaker_id)s is already configured to "
|
||||
"peer with a BGP Peer at %(peer_ip)s, it cannot peer with "
|
||||
"BGP Peer %(bgp_peer_id)s.")
|
||||
|
||||
|
||||
class InvalidBgpPeerMd5Authentication(n_exc.BadRequest):
|
||||
|
|
Loading…
Reference in New Issue