From 918860ca87c7de1751364430516d76ce19160b55 Mon Sep 17 00:00:00 2001 From: Ataf Fazledin Ahamed Date: Fri, 27 Oct 2023 12:29:03 +0600 Subject: [PATCH] Fixed inappropriate logical expression --- src/subscription_manager/productid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subscription_manager/productid.py b/src/subscription_manager/productid.py index db2aa31608..5a60e7b887 100644 --- a/src/subscription_manager/productid.py +++ b/src/subscription_manager/productid.py @@ -682,7 +682,7 @@ def update_removed(self, active, temp_disabled_repos=None): # If productid database does not know about the the product, # ie, repo is None (basically, return from a db.content.get(), # don't delete the cert because we don't know anything about it - if repos is None or repos is []: + if repos is None or repos == []: # FIXME: this can also mean we need to update the product cert # for prod_hash, since it is installed, but no longer maps to a repo # no repos to check, go to next cert