mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Lint
This commit is contained in:
parent
85d2068326
commit
bb5c01ae9d
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ def _get_sqs_conn(profile, region=None, key=None, keyid=None):
|
|||
def _process_queue(q, q_name, fire_master, tag='salt/engine/sqs', owner_acct_id=None):
|
||||
if not q:
|
||||
log.warning('failure connecting to queue: {0}, '
|
||||
'waiting 10 seconds.'.format(':'.join(filter(None, (str(owner_acct_id), q_name)))))
|
||||
'waiting 10 seconds.'.format(':'.join([_f for _f in (str(owner_acct_id), q_name) if _f])))
|
||||
time.sleep(10)
|
||||
else:
|
||||
msgs = q.get_messages(wait_time_seconds=20)
|
||||
|
|
Loading…
Add table
Reference in a new issue