"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "salt/engines/stalekey.py" between
salt-2019.2.0.tar.gz and salt-2019.2.1.tar.gz

About: SaltStack is a systems management software for data center automation, cloud orchestration, server provisioning, configuration management and more. Community version.

stalekey.py  (salt-2019.2.0):stalekey.py  (salt-2019.2.1)
skipping to change at line 87 skipping to change at line 87
elif m in present: elif m in present:
minions[m] = now minions[m] = now
log.debug('Finished checking for present minions') log.debug('Finished checking for present minions')
# Delete old keys # Delete old keys
stale_keys = [] stale_keys = []
for m, seen in six.iteritems(minions): for m, seen in six.iteritems(minions):
if now - expire > seen: if now - expire > seen:
stale_keys.append(m) stale_keys.append(m)
if len(stale_keys): if stale_keys:
for k in stale_keys: for k in stale_keys:
log.info('Removing stale key for %s', k) log.info('Removing stale key for %s', k)
wheel.cmd('key.delete', stale_keys) wheel.cmd('key.delete', stale_keys)
del minions[k] del minions[k]
try: try:
with salt.utils.files.fopen(presence_file, 'w') as f: with salt.utils.files.fopen(presence_file, 'w') as f:
msgpack.dump(minions, f) msgpack.dump(minions, f)
except IOError as e: except IOError as e:
log.error('Could not write to presence file %s: %s', presence_file, e) log.error('Could not write to presence file %s: %s', presence_file, e)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)