def _path(self, resource_id=None):
        """Returns a request path for a given resource identifier.

        :param resource_id: Identifier of the resource to generate the request
                            path.
        """
        return ('/v1/%s/%s' % (self._resource_name, resource_id)
                if resource_id else self._resource_name % '/v1/%s')
dataset/ETHPy150Open openstack/python-ironicclient/ironicclient/common/base.py/Manager._path/swapped operands of `%`