(self, code, command_id)
return self.wsman.signal(self.resource_uri, signal,
                                 selector_set=self._selector_set)
Send a signal to the command

        :param code: The SignalCode value to send
        :param command_id: The command id the signal is for
        :return: The raw WSMan body of the response
Send a signal to the command
Send a signal to the command
def signal(self, code, command_id):
        """
        Send a signal to the command

        :param code: The SignalCode value to send
        :param command_id: The command id the signal is for
        :return: The raw WSMan body of the response
        """
        rsp = NAMESPACES['rsp']

        signal = ET.Element("{%s}Signal" % rsp,
                            attrib={"CommandId": command_id})
        ET.SubElement(signal, "{%s}Code" % rsp).text = code
        return self.wsman.signal(self.resource_uri, signal,
                                 selector_set=self._selector_set)
def signal ( self , code , command_id ) : rsp = NAMESPACES [ 'rsp' ] signal = ET . Element ( "{%s}Signal" % rsp , attrib = { "CommandId" : command_id } ) ET . SubElement ( signal , "{%s}Code" % rsp ) . text = code return self . wsman . signal ( self . resource_uri , signal , selector_set = self . _selector_set )