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:
parent
75885a8e7d
commit
989c5c0bf7
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue