Skip to content

Commit

Permalink
Fix config.items return value
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhestkov committed Aug 9, 2024
1 parent 18ca4fd commit f411744
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion salt/modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import salt.utils.files
import salt.utils.platform
import salt.utils.sdb as sdb
from salt.loader.context import LoaderContext
from salt.loader.context import LoaderContext, NamedLoaderContext

try:
# Gated for salt-ssh (salt.utils.cloud imports msgpack)
Expand Down Expand Up @@ -561,4 +561,6 @@ def items():
salt '*' config.items
"""
if isinstance(__opts__, NamedLoaderContext):
return __opts__.value()
return __opts__

0 comments on commit f411744

Please sign in to comment.