Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/8'
Browse files Browse the repository at this point in the history
* origin/pr/8:
  Handle non existing qubessaltpatches in case where mgmt-salt-base-overrides is not needed anymore
  • Loading branch information
marmarek committed Mar 20, 2019
2 parents 7c1f8d4 + 7f6517e commit c18a9ec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions qubessalt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
import salt.config
import qubesadmin.exc
import qubesadmin.vm
import qubessaltpatches
try:
import qubessaltpatches
except ImportError:
pass

FORMAT_LOG = '%(asctime)s %(message)s'
LOGPATH = '/var/log/qubes'
Expand Down Expand Up @@ -228,7 +231,10 @@ def __init__(self, app, vms, command, max_concurrency=4, show_output=False,
self._opts['file_client'] = 'local'

# this do patch already imported salt modules
import qubessaltpatches
try:
import qubessaltpatches
except ImportError:
pass

def collect_result(self, result_tuple):
name, exit_code, result = result_tuple
Expand Down

0 comments on commit c18a9ec

Please sign in to comment.