Merge pull request #16730 from thatch45/wipe_on_rand

Add -W option to --rand-thin-dir making it easier
This commit is contained in:
Thomas S Hatch 2014-10-17 15:53:41 -06:00
commit 0abcbb437d
2 changed files with 2 additions and 1 deletions

View File

@ -208,6 +208,7 @@ class SSH(object):
self.defaults['thin_dir'] = os.path.join(
'/tmp',
'.{0}'.format(uuid.uuid4().hex[:6]))
self.opts['wipe_ssh'] = 'True'
self.serial = salt.payload.Serial(opts)
self.returners = salt.loader.returners(self.opts, {})
self.fsclient = salt.fileclient.FSClient(self.opts)

View File

@ -2198,7 +2198,7 @@ class SaltSSHOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn,
help='Remove the deployment of the salt files when done executing.',
)
self.add_option(
'--rand-thin-dir',
'-W', '--rand-thin-dir',
default=False,
action='store_true',
help=('Select a random temp dir to deploy on the remote system. '