make spm cache_dir instead of all cachedirs

This will allow spm to be run as a non root user, with a cache dir set to
somewhere other than /var/cache/salt.
This commit is contained in:
Daniel Wallace 2018-03-08 10:27:16 -07:00
parent 35fe9827fe
commit 169cf7a4e2
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -30,7 +30,7 @@ class SPM(parsers.SPMParser):
self.parse_args()
self.setup_logfile_logger()
v_dirs = [
self.config['cachedir'],
self.config['spm_cache_dir'],
]
verify_env(v_dirs,
self.config['user'],