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

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