diff --git a/salt/loader.py b/salt/loader.py index c0c5cc7b345a..3da724fc321b 100644 --- a/salt/loader.py +++ b/salt/loader.py @@ -618,7 +618,7 @@ def grain_funcs(opts, proxy=None): __opts__ = salt.config.minion_config('/etc/salt/minion') grainfuncs = salt.loader.grain_funcs(__opts__) ''' - return LazyLoader( + ret = LazyLoader( _module_dirs( opts, 'grains', @@ -628,6 +628,8 @@ def grain_funcs(opts, proxy=None): opts, tag='grains', ) + ret.pack['__utils__'] = utils(opts, proxy=proxy) + return ret def _load_cached_grains(opts, cfn):