2023-01-09 13:52:13 +01:00
|
|
|
From f113f94d40ee37919aa974a4fab95e482c5a0631 Mon Sep 17 00:00:00 2001
|
2019-01-17 10:18:02 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
---
|
2021-09-27 12:08:32 +02:00
|
|
|
salt/modules/aptpkg.py | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
2019-01-17 10:18:02 +01:00
|
|
|
|
|
|
|
diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
|
2023-01-09 13:52:13 +01:00
|
|
|
index 94e97a0b5b..0cbd611b71 100644
|
2019-01-17 10:18:02 +01:00
|
|
|
--- a/salt/modules/aptpkg.py
|
|
|
|
+++ b/salt/modules/aptpkg.py
|
2023-01-09 13:52:13 +01:00
|
|
|
@@ -1933,6 +1933,9 @@ def list_repos(**kwargs):
|
2021-01-08 13:41:50 +01:00
|
|
|
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
|
2021-09-27 12:08:32 +02:00
|
|
|
repo["uri"] = source.uri
|
2019-01-17 10:18:02 +01:00
|
|
|
--
|
2023-01-09 13:52:13 +01:00
|
|
|
2.37.3
|
2019-01-17 10:18:02 +01:00
|
|
|
|
|
|
|
|