Blame SOURCES/0003-config-manager-Allow-use-of-set-enabled-without-arguments-RhBug1679213.patch

22d84c
From 5bc8e4aee27f2e265ad034060c790d881d0af28a Mon Sep 17 00:00:00 2001
22d84c
From: Pavla Kratochvilova <pkratoch@redhat.com>
22d84c
Date: Thu, 2 Jan 2020 14:39:09 +0100
22d84c
Subject: [PATCH] [config-manager] Allow use of --set-enabled without arguments
22d84c
 (RhBug:1679213)
22d84c
22d84c
Since config-manager was enhanced to also modify repositories specified
22d84c
by repoids in the --setopt option, it should no longer be required to
22d84c
specify repoids as arguments for --set-enabled.
22d84c
22d84c
As a consequence, "config-manager --set-enabled" without any other
22d84c
argument will exit with 0 and have no effect (same as "--set-disabled").
22d84c
22d84c
https://bugzilla.redhat.com/show_bug.cgi?id=1679213
22d84c
---
22d84c
 plugins/config_manager.py | 5 -----
22d84c
 1 file changed, 5 deletions(-)
22d84c
22d84c
diff --git a/plugins/config_manager.py b/plugins/config_manager.py
22d84c
index 4e03d642..bf238ea9 100644
22d84c
--- a/plugins/config_manager.py
22d84c
+++ b/plugins/config_manager.py
22d84c
@@ -67,11 +67,6 @@ def configure(self):
22d84c
 
22d84c
     def run(self):
22d84c
         """Execute the util action here."""
22d84c
-
22d84c
-        if self.opts.set_enabled and not self.opts.crepo:
22d84c
-            logger.error(_("Error: Trying to enable already enabled repos."))
22d84c
-            self.opts.set_enabled = False
22d84c
-
22d84c
         if self.opts.add_repo:
22d84c
             self.add_repo()
22d84c
         else: