def update(self, id, state, description=None, env=None):
        data = {}

        if state:
            data['state'] = state

        if description:
            data['description'] = description

        if env:
            data['params'] = {'env': env}

        return self._update(id % '/executions/%s', data)
dataset/ETHPy150Open openstack/python-mistralclient/mistralclient/api/v2/executions.py/ExecutionManager.update/swapped operands of `%`