Commit 83a5fb86 authored by Hrvoje Ribicic's avatar Hrvoje Ribicic
Browse files

Fix minor RAPI forbidden parameter handler error



The forbidden parameter functionality did not work if renames were not
present due to a missing default. This patch fixes the issue.
Signed-off-by: default avatarHrvoje Ribicic <riba@google.com>
Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
parent fe71113e
......@@ -585,7 +585,7 @@ class _MetaOpcodeResource(type):
obj, method, compat.partial(obj._ForbiddenHandler,
getattr(obj, method),
forbidden_dict,
getattr(obj, m_attrs.rename))
getattr(obj, m_attrs.rename, None))
)
return obj
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment