From 5ee6d3c2bcff85e8a98edc587c4a0aa2fe11a0e8 Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Sat, 9 Dec 2023 14:54:18 -0700 Subject: [PATCH] Fix another test using __opts__ --- tests/pytests/functional/modules/test_aptpkg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/pytests/functional/modules/test_aptpkg.py b/tests/pytests/functional/modules/test_aptpkg.py index 41ade2889de3..60b134966feb 100644 --- a/tests/pytests/functional/modules/test_aptpkg.py +++ b/tests/pytests/functional/modules/test_aptpkg.py @@ -13,6 +13,7 @@ import salt.modules.gpg as gpg import salt.utils.files import salt.utils.stringutils +from salt.loader.dunder import __opts__ from tests.support.mock import Mock, patch pytestmark = [ @@ -76,7 +77,7 @@ def configure_loader_modules(minion_opts): }, gpg: {}, cp: { - "__opts__": minion_opts, + "__opts__": __opts__.with_default(minion_opts), }, config: { "__opts__": minion_opts,