File pkgrepo-support-python-2.7-function-call-295.patch of Package salt
From 4a733724bd1af4f91ac575bfd0bc6fa0ac8e7831 Mon Sep 17 00:00:00 2001
From: Alberto Planas <aplanas@suse.com>
Date: Mon, 16 Nov 2020 10:37:29 +0100
Subject: [PATCH] pkgrepo: support Python 2.7 function call (#295)
---
salt/states/pkgrepo.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/salt/states/pkgrepo.py b/salt/states/pkgrepo.py
index d734bb9de9..852fc015b6 100644
--- a/salt/states/pkgrepo.py
+++ b/salt/states/pkgrepo.py
@@ -853,7 +853,7 @@ def migrated(name, keys=True, drop=False, method=None, **kwargs):
if method == "copy":
_copy_repository_to(name)
else:
- __salt__["pkg.mod_repo"](repo, **dict(repo_info), root=name)
+ __salt__["pkg.mod_repo"](repo, root=name, **dict(repo_info))
for repo, _ in repos_to_drop:
__salt__["pkg.del_repo"](repo, root=name)
--
2.29.2