

def terminate_instance(self, ctxt, instance, bdms, reservations=None, delete_type='delete'):
    'Delete an instance in its cell.\n\n        This method takes a new-world instance object.\n        '
    msg_kwargs = {
        'instance': instance,
    }
    if self.client.can_send_version('1.36'):
        version = '1.36'
        msg_kwargs['delete_type'] = delete_type
    else:
        version = '1.18'
    cctxt = self.client.prepare(version=version)
    cctxt.cast(ctxt, 'terminate_instance', **msg_kwargs)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/cells/rpcapi.py CellsAPI.terminate_instance/original