def on_put(self, req, resp, tenant_id, server_id):
        client = req.env['sl_client']
        cci = SoftLayer.CCIManager(client)
        body = json.loads(req.stream.read().decode())

        if utils.lookup(body, 'server') in 'name':
            if utils.lookup(body, 'server', 'name').strip() == '':
                return error_handling.bad_request(
                    resp, message='Server name is blank')

            cci.edit(server_id, hostname=utils.lookup(body, 'server', 'name'))

        instance = cci.get_instance(server_id,
                                    mask=get_virtual_guest_mask())

        results = get_server_details_dict(self.app, req, instance, False)
        resp.body = {'server': results}
dataset/ETHPy150Open softlayer/jumpgate/jumpgate/compute/drivers/sl/servers.py/ServerV2.on_put/swapped operands of `in`