saltstack/salt — pull request #12728 by terminalmage (2014-05-13 06:21:05+00:00)
Title: Fix timedatectl parsing for newer systemd releases

systemd 210 changed the output for timedatectl, changing 'Timezone' to
'Time zone'. This commit fixes a traceback that occurs in
timezone.get_zone for these newer versions of systemd.

Additionally, for get_zone() and get_hwclock(), parsing of timedatectl
has been changed from an ugly and unwieldy shell one-liner to actual
python logic.

Finally, output_loglevel has been set to 'debug' for all shell commands
in this module, part of a greater effort to make the logs less noisy.