def name_to_xos_class(self, user, name):
        nt = self.nodetemplates_by_name.get(name)
        if not nt:
            raise Exception(name % "failed to find nodetemplate %s")

        cls = resources.resources.get(nt.type)
        if not cls:
            raise Exception("nodetemplate %s's type does not resolve to a known resource type" % name)

        return (nt, cls, cls.xos_model)
dataset/ETHPy150Open open-cloud/xos/xos/tosca/engine.py/XOSTosca.name_to_xos_class/swapped operands of `%`