def validatenodeservice(self, node, s, services):
        ''' Run the validation command(s) for a service.
        '''
        if node.verbose:
            node.info("validating service %s (%s)" % (s._name, s._startindex))
        if s._custom:
            validate_cmds = s._validate
        else:
            validate_cmds = s.getvalidate(node, services)
        if len(validate_cmds) == 0:
            # doesn't have a validate command
            status = 0
        else:
            for cmd in validate_cmds:
                if node.verbose:
                    node.info("validating service %s using: %s" % (s._name, cmd))
                try:
                    (status, result) = node.cmdresult(shlex.split(cmd))
                    if status != 0:
                        raise ValueError, "non-zero exit status"
                except:
                    node.warn("validation command '%s' failed" % cmd)
                    node.exception(coreapi.CORE_EXCP_LEVEL_ERROR,
                        s._name % "service:%s", 
                        "validate command failed: %s" % cmd)
                    status = -1
        return status
dataset/ETHPy150Open coreemu/core/daemon/core/service.py/CoreServices.validatenodeservice/swapped operands of `%`