Merge pull request #16353 from cachedout/data_p_ssh

Use unique name for data.p in salt-ssh
This commit is contained in:
Thomas S Hatch 2014-10-03 12:25:33 -06:00
commit b213c5b9c0

View File

@ -627,7 +627,7 @@ class Single(object):
cdir = os.path.join(self.opts['cachedir'], 'minions', self.id) cdir = os.path.join(self.opts['cachedir'], 'minions', self.id)
if not os.path.isdir(cdir): if not os.path.isdir(cdir):
os.makedirs(cdir) os.makedirs(cdir)
datap = os.path.join(cdir, 'data.p') datap = os.path.join(cdir, 'ssh_data.p')
refresh = False refresh = False
if not os.path.isfile(datap): if not os.path.isfile(datap):
refresh = True refresh = True