diff --git a/.mailmap b/.mailmap index 84e31bf536d3..66ae701dd5f0 100644 --- a/.mailmap +++ b/.mailmap @@ -79,3 +79,4 @@
+ diff --git a/Authors b/Authors index 5c5df3d61e66..88285d971157 100644 --- a/Authors +++ b/Authors @@ -99,7 +99,7 @@ John Dewey John Garbutt John Griffith John Kennedy -John Tran +John Tran Jonathan Bryce Jordan Rinke Joseph Suh diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py index 3a4e8ea1b7bf..c555c73c83b5 100644 --- a/nova/db/sqlalchemy/api.py +++ b/nova/db/sqlalchemy/api.py @@ -1070,7 +1070,7 @@ def fixed_ip_get_all(context, session=None): @require_context def fixed_ip_get_by_address(context, address, session=None): result = model_query(context, models.FixedIp, session=session, - read_deleted="yes").\ + read_deleted=context.read_deleted).\ filter_by(address=address).\ first() if not result: diff --git a/nova/tests/test_db_api.py b/nova/tests/test_db_api.py index c1002d98ad7f..1abd44a90d99 100644 --- a/nova/tests/test_db_api.py +++ b/nova/tests/test_db_api.py @@ -151,6 +151,8 @@ class DbApiTestCase(test.TestCase): db.network_delete_safe, ctxt, network['id']) db.fixed_ip_update(ctxt, address2, {'allocated': False}) network = db.network_delete_safe(ctxt, network['id']) + self.assertRaises(exception.FixedIpNotFoundForAddress, + db.fixed_ip_get_by_address, ctxt, address1) ctxt = ctxt.elevated(read_deleted='yes') fixed_ip = db.fixed_ip_get_by_address(ctxt, address1) self.assertTrue(fixed_ip['deleted'])

AltStyle によって変換されたページ (->オリジナル) /