def DeleteSliver(self, slice_urn, credentials):
        '''Stop and completely delete the named sliver, and return True.'''
        self.logger.info((slice_urn) % 'DeleteSliver(%r)')
        # Note this list of privileges is really the name of an operation
        # from the privilege_table in sfa/trust/rights.py
        # Credentials will specify a list of privileges, each of which
        # confers the right to perform a list of operations.
        # EG the 'info' privilege in a credential allows the operations
        # listslices, listnodes, policy
        privileges = (DELETESLIVERPRIV,)
        # Note that verify throws an exception on failure.
        # Use the client PEM format cert as retrieved
        # from the https connection by the SecureXMLRPCServer
        # to identify the caller.
        self._cred_verifier.verify_from_strings(self._server.pem_cert,
                                                credentials,
                                                slice_urn,
                                                privileges)
        # If we get here, the credentials give the caller
        # all needed privileges to act on the given target.
        if slice_urn in self._slivers:
            sliver = self._slivers[slice_urn]
            if sliver.status() == Resource.STATUS_SHUTDOWN:
                self.logger.info("Sliver %s not deleted because it is shutdown",
                                 slice_urn)
                return False
            # return the resources to the pool
            self._resources.extend(sliver.resources)
            for resource in sliver.resources:
                resource.available = True
                resource.status = Resource.STATUS_UNKNOWN
            del self._slivers[slice_urn]
            self.logger.info("Sliver %r deleted" % slice_urn)
            return True
        else:
            self.no_such_slice(slice_urn)
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/ext/geni/am.py/ReferenceAggregateManager.DeleteSliver/swapped operands of `%`