Make DirectClientException report correct ip and port
When direct_client.direct_get_suffix_hashes raises a
DirectClientException the exception message and variables
should report the replication_ip and replication_port, as
opposed to the ip and port values reported for all other
case when the exception is raised.
Add option to override ip and port reported in
DirectClientException.
Reviewed: https:/ /review. openstack. org/302171 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=5d56f40f04f a9211a2e392d667 fe395f38d2cca5
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5d56f40f04fa921 1a2e392d667fe39 5f38d2cca5
Author: Alistair Coles <email address hidden>
Date: Wed Apr 6 11:48:48 2016 +0100
Make DirectClientExc eption report correct ip and port
When direct_ client. direct_ get_suffix_ hashes raises a tException the exception message and variables
DirectClien
should report the replication_ip and replication_port, as
opposed to the ip and port values reported for all other
case when the exception is raised.
Add option to override ip and port reported in tException.
DirectClien
Also adds unit tests to verify both cases.
Related-Bug: 1566395 f4e9f6164858085 367266386d2
Change-Id: If3d952847c7199