Hello.
On Mon, Mar 31, 2014 at 9:32 PM, Dan Smith <d...@danplanet.com> wrote: > > > > > (self, context, [], {'migration': migration, 'image': image, > > 'instance': instance, 'reservations': reservations}) > > > > while when running a test case, they see these arguments: > > > > (self, context, [instance, image, reservations, migration, > > instance_type], {}) > > All RPC-called methods get called with all of their arguments as keyword > arguments. I think this explains the runtime behavior you're seeing. > Tests tend to differ in this regard because test writers are human and > call the methods in the way they normally expect, passing positional > arguments when appropriate. > It might be wise to add something like https://pypi.python.org/pypi/kwonlyto all methods that are used in RPC and modify tests appropriately to avoid such confusion in future. -- Kind regards, Yuriy.
_______________________________________________ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev