mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #48286 from terminalmage/caller-print_grains
Don't load the grains again when printing them via salt-call -g
This commit is contained in:
commit
1f306525a7
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class BaseCaller(object):
|
|||
'''
|
||||
Print out the grains
|
||||
'''
|
||||
grains = salt.loader.grains(self.opts)
|
||||
grains = self.minion.opts.get('grains') or salt.loader.grains(self.opts)
|
||||
salt.output.display_output({'local': grains}, 'grains', self.opts)
|
||||
|
||||
def run(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue