Re: [openstack-dev] Decorator behavior

2014-04-01 Thread Yuriy Taraday
Hello. On Mon, Mar 31, 2014 at 9:32 PM, Dan Smith 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, re

Re: [openstack-dev] Decorator behavior

2014-03-31 Thread Dan Smith
> At run time there are decorators that behave in an unexpected manner. > For instance, in nova/compute/manager.py when ComputeManager's > resize_instance method is called, the "migration" positional argument > is somehow added to kwargs (paired with the "migration" key) and is > stripped out of th

[openstack-dev] Decorator behavior

2014-03-31 Thread John S Warren
At run time there are decorators that behave in an unexpected manner. For instance, in nova/compute/manager.py when ComputeManager's resize_instance method is called, the "migration" positional argument is somehow added to kwargs (paired with the "migration" key) and is stripped out of the args par