Use shorter version of salt-run command in warning

This commit is contained in:
Erik Johnson 2015-02-21 23:23:54 -06:00 committed by C. R. Oldham
parent 537a78ec5c
commit d61cc123f0
3 changed files with 6 additions and 9 deletions

View File

@ -1031,9 +1031,8 @@ def update():
'Update lockfile is present for gitfs remote {0}, skipping. '
'If this warning persists, it is possible that the update '
'process was interrupted. Removing {1} or running '
'\'salt-run fileserver.clear_lock backend=git\' will allow '
'updates to continue for this remote.'
.format(repo['url'], lk_fn)
'\'salt-run fileserver.clear_lock gitfs\' will allow updates '
'to continue for this remote.'.format(repo['url'], lk_fn)
)
continue
try:

View File

@ -389,9 +389,8 @@ def update():
'Update lockfile is present for hgfs remote {0}, skipping. '
'If this warning persists, it is possible that the update '
'process was interrupted. Removing {1} or running '
'\'salt-run fileserver.clear_lock backend=hg\' will allow '
'updates to continue for this remote.'
.format(repo['url'], lk_fn)
'\'salt-run fileserver.clear_lock hgfs\' will allow updates '
'to continue for this remote.'.format(repo['url'], lk_fn)
)
continue
with salt.utils.fopen(lk_fn, 'w+') as fp_:

View File

@ -319,9 +319,8 @@ def update():
'Update lockfile is present for svn remote {0}, skipping. '
'If this warning persists, it is possible that the update '
'process was interrupted. Removing {1} or running '
'\'salt-run fileserver.clear_lock backend=svn\' will allow '
'updates to continue for this remote.'
.format(repo['url'], lk_fn)
'\'salt-run fileserver.clear_lock svnfs\' will allow updates '
'to continue for this remote.'.format(repo['url'], lk_fn)
)
continue
with salt.utils.fopen(lk_fn, 'w+') as fp_: