Updated openstack/openstack
Project: openstack/trove  6979ceadf487c7a61839dc5c87ada67b19f5848c
null
Imported Translations from Transifex

Change-Id: Ib11144ccb6d567f820db7adae0a9ae7bde32f511
Updated openstack/openstack
Project: openstack/nova  60d989f0e466b44c918684a005e639798b95d31e
null
Add a decorator decorator that checks func args

This patch adds a decorator for decorators that allows specifying the
arg names that the function being decorated must accept. If the function
being decorated does not accept the specified args, an exception will be
thrown during 'decoration', meaning import time usually.

If however the function accepts variable number of arguments, the
decorator will be a no-op as it is not possible to guess what will be
passed at runtime. This is however good enough for Nova's compute
manager decorators that inspired this work, as they decorate methods
with well defined and even versioned arguments.

Several decorators used in compute manager are now fortified with this
"compile time" check.

Partial-bug:#1296593
Change-Id: I00ebcc8a092fa0894ba8764699093f59a46b8647