diff --git a/src/plugins/dnf/subscription_manager.py b/src/plugins/dnf/subscription_manager.py index d8883e172c..f26a6f430c 100644 --- a/src/plugins/dnf/subscription_manager.py +++ b/src/plugins/dnf/subscription_manager.py @@ -242,7 +242,10 @@ def transaction(self): Call Package Profile """ cfg = config.get_config_parser() - if "1" == cfg.get("rhsm", "package_profile_on_trans"): + if ( + cfg.get("rhsm", "report_package_profile") == "1" + and cfg.get("rhsm", "package_profile_on_trans") == "1" + ): log.debug("Uploading package profile") self._upload_profile() else: