New exitcode for SCP not found

Re: https://github.com/saltstack/salt/issues/25478 and https://github.com/saltstack/salt/issues/25026
This commit is contained in:
Sam Norbury 2015-07-30 13:25:31 +02:00 committed by rallytime
parent 423d528b73
commit 6b2100a30b
3 changed files with 7 additions and 0 deletions

View file

@ -1048,6 +1048,11 @@ ARGS = {9}\n'''.format(self.minion_config,
'checksum mismatched',
'The salt thin transfer was corrupted'
),
(
(salt.defaults.exitcodes.EX_SCP_NOT_FOUND,),
'scp not found',
'No scp binary. openssh-clients package required'
),
(
(salt.defaults.exitcodes.EX_CANTCREAT,),
'salt path .* exists but is not a directory',

View file

@ -24,6 +24,7 @@ EXT_ARCHIVE = 'salt-ext_mods.tgz'
EX_THIN_DEPLOY = 11
EX_THIN_CHECKSUM = 12
EX_MOD_DEPLOY = 13
EX_SCP_NOT_FOUND = 14
class OBJ(object):

View file

@ -14,6 +14,7 @@ EX_THIN_PYTHON_OLD = 10
EX_THIN_DEPLOY = 11
EX_THIN_CHECKSUM = 12
EX_MOD_DEPLOY = 13
EX_SCP_NOT_FOUND = 14
# The os.EX_* exit codes are Unix only so in the interest of cross-platform
# compatiblility define them explicitly here.