Merge "Fix log exception"
This commit is contained in:
commit
32648b3832
@ -136,6 +136,7 @@ class ManagerError(NsxPluginException):
|
||||
if 'details' in kwargs
|
||||
else '')
|
||||
super(ManagerError, self).__init__(**kwargs)
|
||||
self.msg = self.message % kwargs
|
||||
|
||||
|
||||
class ResourceNotFound(ManagerError):
|
||||
|
@ -196,7 +196,8 @@ class ClusteredAPITestCase(nsxlib_testcase.NsxClientTestCase):
|
||||
def test_cluster_proxy_stale_revision(self):
|
||||
|
||||
def stale_revision():
|
||||
raise nsx_exc.StaleRevision()
|
||||
raise nsx_exc.StaleRevision(manager='1.1.1.1',
|
||||
operation='whatever')
|
||||
|
||||
api = self.mock_nsx_clustered_api(session_response=stale_revision)
|
||||
self.assertRaises(nsx_exc.StaleRevision,
|
||||
|
Loading…
Reference in New Issue
Block a user