mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Change few warning messages
Signed-off-by: Rares POP <rares.pop@ni.com>
This commit is contained in:
parent
569fe2a05a
commit
6fd736067d
@ -216,8 +216,11 @@ class SlackClient(object):
|
||||
try:
|
||||
groups_gen = itertools.chain(self._groups_from_pillar(groups_pillar_name).items(), use_groups.items())
|
||||
except AttributeError:
|
||||
log.warning('Failed to get groups from %s: %s', groups_pillar_name, self._groups_from_pillar(groups_pillar_name))
|
||||
log.warning('or from config: %s', use_groups)
|
||||
log.warning('Failed to get groups from %s: %s or from config: %s',
|
||||
groups_pillar_name,
|
||||
self._groups_from_pillar(groups_pillar_name),
|
||||
use_groups
|
||||
)
|
||||
groups_gen = []
|
||||
for name, config in groups_gen:
|
||||
log.info('Trying to get %s and %s to be useful', name, config)
|
||||
@ -231,7 +234,7 @@ class SlackClient(object):
|
||||
ret_groups[name]['default_target'].update(config.get('default_target', {}))
|
||||
ret_groups[name]['targets'].update(config.get('targets', {}))
|
||||
except (IndexError, AttributeError):
|
||||
log.warning("Couldn't use group %s. Check that targets is a dict and not a list", name)
|
||||
log.warning("Couldn't use group %s. Check that targets is a dictionary and not a list", name)
|
||||
|
||||
log.debug('Got the groups: %s', ret_groups)
|
||||
return ret_groups
|
||||
@ -687,7 +690,7 @@ class SlackClient(object):
|
||||
break
|
||||
if len(msg) == 0:
|
||||
count += 1
|
||||
log.warning('len(msg) is zero')
|
||||
log.warning('Skipping an empty message.')
|
||||
continue # This one is a dud, get the next message
|
||||
if msg.get('done'):
|
||||
log.trace('msg is done')
|
||||
|
@ -100,7 +100,7 @@ def mapped(name,
|
||||
if name not in active.keys():
|
||||
# Open the map using cryptsetup. This does not pass any options.
|
||||
if opts:
|
||||
log.warning('passed cryptdev options are ignored when mapping immediately')
|
||||
log.warning('Ignore cryptdev configuration when mapping immediately')
|
||||
|
||||
if __opts__['test']:
|
||||
ret['result'] = None
|
||||
|
@ -426,7 +426,7 @@ def _delete_directory_smbprotocol(path, share='C$', conn=None, host=None, userna
|
||||
conn = get_conn(host, username, password)
|
||||
if conn is False:
|
||||
return False
|
||||
log.warning("PATH: %s %s", share, path)
|
||||
log.debug("_delete_directory_smbprotocol - share: %s, path: %s", share, path)
|
||||
tree = conn.tree_connect(share)
|
||||
|
||||
dir_open = Open(tree, path)
|
||||
|
Loading…
Reference in New Issue
Block a user