51d9b78cf8
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:saltstack/salt?expand=0&rev=156
27 lines
847 B
Diff
27 lines
847 B
Diff
From 9e543a835c870eaea424735fb8e52a82480dce90 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 | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
|
|
index ead7c6391e..6b3a921a82 100644
|
|
--- a/salt/modules/aptpkg.py
|
|
+++ b/salt/modules/aptpkg.py
|
|
@@ -1595,6 +1595,7 @@ def list_repos():
|
|
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.rstrip('/')
|
|
--
|
|
2.16.4
|
|
|
|
|