handle unc paths

This commit is contained in:
twangboy 2018-07-02 14:38:20 -06:00
parent 10e93bff7f
commit c5aad04140
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -80,6 +80,8 @@ def _checksum_file_path(path):
drive.rstrip(':'),
path.lstrip('/\\'),
)
elif str(exc).startswith('Cannot mix UNC'):
relpath = salt.utils.path_join('unc', path)
else:
raise
ret = salt.utils.path_join(__opts__['cachedir'], 'archive_hash', relpath)