modules.win_timezone: don't list all zones in debug log

This commit is contained in:
Justin Findlay 2016-04-06 10:46:44 -06:00
parent 76ae95863d
commit c01c1b9da2

View file

@ -493,7 +493,10 @@ def get_offset():
string = False
zone = __salt__['cmd.run'](['tzutil', '/g'], python_shell=False)
prev = ''
for line in __salt__['cmd.run'](['tzutil', '/l'], python_shell=False).splitlines():
zone_list = __salt__['cmd.run'](['tzutil', '/l'],
python_shell=False,
output_loglevel='trace').splitlines()
for line in zone_list:
if zone == line:
string = prev
break