summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorXavier Queralt <xqueralt@redhat.com>2013-06-12 14:59:29 +0200
committerXavier Queralt <xqueralt@redhat.com>2013-06-17 11:45:30 +0200
commit645c2d3a06bbf8b0854ebcc539ad33dd706866c5 (patch)
tree298705a7eb9d62fd2ca8e927daf9303025251fab /nova/tests
parentd147af21db2db77f578e527883cf2c68abc56496 (diff)
Accept is_public=None when listing all flavors
nova-client uses a None (with capital N) when listing all the flavors. Right now this is interpreted as a wrong query by n-api preventing us from listing the private flavors using the nova-client. Fixes bug #1190239 Change-Id: I2a9b1c24cd744c8819c1d41e0ad103d05398401c
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/api/openstack/compute/test_flavors.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/tests/api/openstack/compute/test_flavors.py b/nova/tests/api/openstack/compute/test_flavors.py
index 77e637044..3741fcd33 100644
--- a/nova/tests/api/openstack/compute/test_flavors.py
+++ b/nova/tests/api/openstack/compute/test_flavors.py
@@ -792,6 +792,7 @@ class ParseIsPublicTest(test.TestCase):
def test_string_none(self):
self.assertPublic(None, 'none')
+ self.assertPublic(None, 'None')
def test_other(self):
self.assertRaises(