File make-aptpkg.list_repos-compatible-on-enabled-disable.patch of Package salt

From f31ab712a0838709bee0ba2420c99caa6700fbf4 Mon Sep 17 00:00:00 2001
From: Bo Maryniuk <bo@suse.de>
Date: Fri, 16 Nov 2018 10:54:12 +0100
Subject: [PATCH] Make aptpkg.list_repos compatible on enabled/disabled
 output

---
 salt/modules/aptpkg.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
index 0a1c3b347c..1b4e311cee 100644
--- a/salt/modules/aptpkg.py
+++ b/salt/modules/aptpkg.py
@@ -1691,6 +1691,9 @@ def list_repos(**kwargs):
         repo["file"] = source.file
         repo["comps"] = getattr(source, "comps", [])
         repo["disabled"] = source.disabled
+        repo["enabled"] = not repo[
+            "disabled"
+        ]  # This is for compatibility with the other modules
         repo["dist"] = source.dist
         repo["type"] = source.type
         repo["uri"] = source.uri
-- 
2.33.0


openSUSE Build Service is sponsored by