Merge pull request #53829 from saltstack/fix_stats_2019.2.1

Fix stats on windows
This commit is contained in:
Daniel Wozniak 2019-07-11 18:03:46 -07:00 committed by GitHub
commit 5064027b9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1002,6 +1002,7 @@ class MWorker(salt.utils.process.SignalHandlingMultiprocessingProcess):
self.mkey = state['mkey']
self.key = state['key']
self.k_mtime = state['k_mtime']
self.stats = state['stats']
SMaster.secrets = state['secrets']
def __getstate__(self):
@ -1012,6 +1013,7 @@ class MWorker(salt.utils.process.SignalHandlingMultiprocessingProcess):
'key': self.key,
'k_mtime': self.k_mtime,
'secrets': SMaster.secrets,
'stats': self.stats,
'log_queue': self.log_queue,
'log_queue_level': self.log_queue_level
}