

def resize_instance(self, ctxt, instance, extra_instance_updates, scheduler_hint, flavor, reservations, clean_shutdown=True):
    flavor_p = jsonutils.to_primitive(self)
    version = '1.33'
    msg_args = {
        'instance': instance,
        'flavor': flavor_p,
        'extra_instance_updates': extra_instance_updates,
        'clean_shutdown': clean_shutdown,
    }
    if (not self.client.can_send_version(version)):
        del msg_args['clean_shutdown']
        version = '1.20'
    cctxt = self.client.prepare(version=version)
    cctxt.cast(ctxt, 'resize_instance', **msg_args)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/cells/rpcapi.py CellsAPI.resize_instance/VarMisuse@32/47 `flavor`->`self`