mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
closes #14586
This commit is contained in:
parent
88792c67bd
commit
d844fdedaf
@ -114,11 +114,11 @@ def archive(cwd, output, rev='tip', fmt=None, prefix=None, user=None):
|
||||
'''
|
||||
_check_hg()
|
||||
|
||||
cmd = 'hg archive {output}{rev}{fmt}'.format(
|
||||
cmd = 'hg archive {output}{rev}{fmt}{prefix}'.format(
|
||||
rev=' --rev {0}'.format(rev),
|
||||
output=output,
|
||||
fmt=' --type {0}'.format(fmt) if fmt else '',
|
||||
prefix=' --prefix "{0}"'.format(prefix if prefix else ''))
|
||||
prefix=' --prefix "{0}"'.format(prefix) if prefix else '')
|
||||
|
||||
return __salt__['cmd.run'](cmd, cwd=cwd, runas=user)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user