Fix another test using __opts__

This commit is contained in:
Daniel A. Wozniak 2023-12-09 14:54:18 -07:00 committed by Daniel Wozniak
parent ee069a155b
commit f3ab61b069

View file

@ -13,6 +13,7 @@ import salt.modules.file as file
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,