Fix incorrect call for _gen_uuid

_gen_uuid is a lambda expression which was not
invoked as a function callable.

This patch invokes _gen_uuid as a function call
to maintain consistency.

TrivialFix

Change-Id: I77089d33fbbe7baa5aa7deac5a9f69ae79959846
This commit is contained in:
hussainchachuliya 2016-08-26 12:40:29 +05:30 committed by Hussain Chachuliya
parent 29fada731e
commit 1bbddb7ae3
1 changed files with 1 additions and 1 deletions

View File

@ -2231,7 +2231,7 @@ class TestGlanceAPI(base.IsolatedUnitTest):
def test_update_non_existing_image(self):
self.config(image_size_cap=100)
req = webob.Request.blank("images/%s" % _gen_uuid)
req = webob.Request.blank("images/%s" % _gen_uuid())
req.method = 'PUT'
req.body = b'test'
req.headers['x-image-meta-name'] = 'test'