Permalink
Browse files

Write the refresh file flag for the running minion

  • Loading branch information...
1 parent 36e39ae commit ad5a4630d03eb4534221c434a0b8e9af1c4b75ef @thatch45 thatch45 committed Jan 6, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 salt/modules/grains.py
View
@@ -107,6 +107,9 @@ def setval(key, val):
cstr = yaml.safe_dump(grains, default_flow_style=False)
with open(gfn, 'w+') as fp_:
fp_.write(cstr)
+ fn_ = os.path.join(__opts__['cachedir'], 'module_refresh')
+ with open(fn_, 'w+') as fp_:
+ fp_.write('')
def ls(): # pylint: disable-msg=C0103

0 comments on commit ad5a463

Please sign in to comment.