mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Sync the grains on grains.setval, Fix #5009
This commit is contained in:
parent
a4241facdb
commit
e06b07fa18
@ -161,6 +161,8 @@ def setval(key, val):
|
||||
fn_ = os.path.join(__opts__['cachedir'], 'module_refresh')
|
||||
with open(fn_, 'w+') as fp_:
|
||||
fp_.write('')
|
||||
# Sync the grains
|
||||
__salt__['saltutil.sync_grains']()
|
||||
# Return the grain we just set to confirm everything was OK
|
||||
return {key: val}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user