Fix wrong definition of assert

Fix warning error message in unittests log, which was added in patch
Ie881a1bdb88f4bcb1c03c037bcedf2a328d5d41c:

"heat/engine/attributes.py:80: SyntaxWarning: assertion is always true,
perhaps remove parentheses?"

Change-Id: I165d3a1f4e281debd8afb390520f18fc59084b87
This commit is contained in:
Sergey Kraynev 2015-06-09 10:42:06 -04:00
parent 75885a8e7d
commit 989c5c0bf7
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@ class Schema(constr.Schema):
"""
Return a Property Schema corresponding to a Attribute Schema.
"""
assert (isinstance(schema_dict, cls),
'Old attribute schema is not supported')
msg = 'Old attribute schema is not supported'
assert isinstance(schema_dict, cls), msg
return schema_dict