auth.py
def delete_temporary_credential_file(
        use_secure_storage_for_temporary_credential=False):
    """
    Delete temporary credential file and its lock file
    """
    global TEMPORARY_CREDENTIAL_FILE
    if IS_LINUX or not use_secure_storage_for_temporary_credential:
        try:
            remove(TEMPORARY_CREDENTIAL_FILE)
        except Exception as ex:
            logger.debug("Failed to delete a credential file: "
                         "file=[%s], err=[%s]", TEMPORARY_CREDENTIAL_FILE, ex)
    else:
        try:
            import keyring
            keyring.delete_password(KEYRING_SERVICE_NAME, KEYRING_USER)
        except Exception as ex:
            logger.debug("Failed to delete credential in the keyring: err=[%s]",
                         ex)
    try:
        removedirs(TEMPORARY_CREDENTIAL_FILE_LOCK)
    except Exception as ex:
        logger.debug("Failed to delete credential lock file: err=[%s]", ex)

    Delete temporary credential file and its lock file
    
Delete temporary credential file and its lock file
Delete temporary credential file and its lock file
def delete_temporary_credential_file(
        use_secure_storage_for_temporary_credential=False):
    global TEMPORARY_CREDENTIAL_FILE
    if IS_LINUX or not use_secure_storage_for_temporary_credential:
        try:
            remove(TEMPORARY_CREDENTIAL_FILE)
        except Exception as ex:
            logger.debug("Failed to delete a credential file: "
                         "file=[%s], err=[%s]", TEMPORARY_CREDENTIAL_FILE, ex)
    else:
        try:
            import keyring
            keyring.delete_password(KEYRING_SERVICE_NAME, KEYRING_USER)
        except Exception as ex:
            logger.debug("Failed to delete credential in the keyring: err=[%s]",
                         ex)
    try:
        removedirs(TEMPORARY_CREDENTIAL_FILE_LOCK)
    except Exception as ex:
        logger.debug("Failed to delete credential lock file: err=[%s]", ex)
def delete_temporary_credential_file ( use_secure_storage_for_temporary_credential = False ) : global TEMPORARY_CREDENTIAL_FILE if IS_LINUX or not use_secure_storage_for_temporary_credential : try : remove ( TEMPORARY_CREDENTIAL_FILE ) except Exception as ex : logger . debug ( "Failed to delete a credential file: " "file=[%s], err=[%s]" , TEMPORARY_CREDENTIAL_FILE , ex ) else : try : import keyring keyring . delete_password ( KEYRING_SERVICE_NAME , KEYRING_USER ) except Exception as ex : logger . debug ( "Failed to delete credential in the keyring: err=[%s]" , ex ) try : removedirs ( TEMPORARY_CREDENTIAL_FILE_LOCK ) except Exception as ex : logger . debug ( "Failed to delete credential lock file: err=[%s]" , ex )
Delete temporary credential file and its lock file
Delete temporary credential file and its lock file
"""
    Delete temporary credential file and its lock file
    """
use_secure_storage_for_temporary_credential