mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add error logging
This commit is contained in:
parent
fee67012af
commit
5b02548e3b
1 changed files with 9 additions and 1 deletions
|
@ -187,7 +187,15 @@ class _Zypper(object):
|
|||
|
||||
:return:
|
||||
'''
|
||||
return self.exit_code not in self.SUCCESS_EXIT_CODES
|
||||
if self.exit_code:
|
||||
msg = self.SUCCESS_EXIT_CODES.get(self.exit_code)
|
||||
if msg:
|
||||
log.info(msg)
|
||||
msg = self.WARNING_EXIT_CODES.get(self.exit_code)
|
||||
if msg:
|
||||
log.warning(msg)
|
||||
|
||||
return self.exit_code not in self.SUCCESS_EXIT_CODES and self.exit_code not in self.WARNING_EXIT_CODES
|
||||
|
||||
def _is_lock(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue