insights/client/connection.py
def _legacy_unregister(self):
        """
        Unregister this system from the insights service
        """
        machine_id = generate_machine_id()
        try:
            logger.debug("Unregistering %s", machine_id)
            url = self.api_url + "/v1/systems/" + machine_id
            net_logger.info("DELETE %s", url)
            self.session.delete(url)
            logger.info(
                "Successfully unregistered from the Red Hat Insights Service")
            return True
        except requests.ConnectionError as e:
            logger.debug(e)
            logger.error("Could not unregister this system")
            return False

        Unregister this system from the insights service
        
Unregister this system from the insights service
Unregister this system from the insights service
def _legacy_unregister(self):
        machine_id = generate_machine_id()
        try:
            logger.debug("Unregistering %s", machine_id)
            url = self.api_url + "/v1/systems/" + machine_id
            net_logger.info("DELETE %s", url)
            self.session.delete(url)
            logger.info(
                "Successfully unregistered from the Red Hat Insights Service")
            return True
        except requests.ConnectionError as e:
            logger.debug(e)
            logger.error("Could not unregister this system")
            return False
def _legacy_unregister ( self ) : machine_id = generate_machine_id ( ) try : logger . debug ( "Unregistering %s" , machine_id ) url = self . api_url + "/v1/systems/" + machine_id net_logger . info ( "DELETE %s" , url ) self . session . delete ( url ) logger . info ( "Successfully unregistered from the Red Hat Insights Service" ) return True except requests . ConnectionError as e : logger . debug ( e ) logger . error ( "Could not unregister this system" ) return False
Unregister this system from the insights service
Unregister this system from the insights service
"""
        Unregister this system from the insights service
        """
self