2020-04-07 14:14:01 +02:00
|
|
|
From 93f69a227b7f8c3d4625c0699ab3923d4a0b3127 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
|
|
|
|
|
|
|
|
---
|
|
|
|
salt/modules/aptpkg.py | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
|
|
|
diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
|
2020-04-07 14:14:01 +02:00
|
|
|
index b5503f0b10..8f4d95a195 100644
|
2019-01-17 10:18:02 +01:00
|
|
|
--- a/salt/modules/aptpkg.py
|
|
|
|
+++ b/salt/modules/aptpkg.py
|
2020-04-07 14:14:01 +02:00
|
|
|
@@ -1641,6 +1641,7 @@ def list_repos():
|
2019-01-17 10:18:02 +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
|
|
|
|
repo['uri'] = source.uri.rstrip('/')
|
|
|
|
--
|
2019-11-28 16:41:55 +01:00
|
|
|
2.16.4
|
2019-01-17 10:18:02 +01:00
|
|
|
|
|
|
|
|