mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
modules.win_timezone: don't list all zones in debug log
This commit is contained in:
parent
76ae95863d
commit
c01c1b9da2
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue