Add timeout for salt calls
diff --git a/cvp_checks/utils/__init__.py b/cvp_checks/utils/__init__.py
index 3c485c5..35aa54e 100644
--- a/cvp_checks/utils/__init__.py
+++ b/cvp_checks/utils/__init__.py
@@ -11,7 +11,8 @@
login_payload = {'username': config['SALT_USERNAME'],
'password': config['SALT_PASSWORD'], 'eauth': 'pam'}
accept_key_payload = {'fun': fun, 'tgt': tgt, 'client': 'local',
- 'expr_form': expr_form, 'tgt_type': tgt_type}
+ 'expr_form': expr_form, 'tgt_type': tgt_type,
+ 'timeout': config['salt_timeout']}
if param:
accept_key_payload['arg'] = param