Add underscore to regex search

This commit is contained in:
twangboy 2017-08-29 09:13:44 -06:00
parent 3cf2b6575c
commit 31ff69f0ad

View file

@ -1243,7 +1243,7 @@ def install(name=None, refresh=False, pkgs=None, **kwargs):
# Run Scheduled Task
# Special handling for installing salt
if re.search(r'salt[\s-]*minion', pkg_name, flags=re.IGNORECASE+re.UNICODE) is not None:
if re.search(r'salt[\s-_]*minion', pkg_name, flags=re.IGNORECASE+re.UNICODE) is not None:
ret[pkg_name] = {'install status': 'task started'}
if not __salt__['task.run'](name='update-salt-software'):
log.error('Failed to install {0}'.format(pkg_name))