def doWork(self): ch = ConfigHolder(self.options) client = Client(ch) if self.options.cancel: client.cancel_abort() else: value = truncate_middle(Client.VALUE_LENGTH_LIMIT, self.reason, '\n(truncated)\n') client.setRuntimeParameter(NodeDecorator.ABORT_KEY, value)
def doWork(self): ch = ConfigHolder(self.options) client = Client(ch) client.cancel_abort()