Closed mcv21 closed 5 years ago
First time I've seen a comment in those files.
Informal standards... So yeah, we gotta discard those lines then, if Ansible start putting comments in them.
This is merged now, so that should hopefully work now.
Thanks :)
On my system, /etc/timezone is 2 lines, one comment, then a timezone definition:
pytz's _get_localzone code doesn't parse this correctly, resulting in
pytz.exceptions.UnknownTimeZoneError: '
this is because the code first splits on the first space, and then splits the result on the # character (resulting in an empty string); I demonstrate it here by copying the logic from unix.py ll56 et seq:
I think it would be better to do a line-by-line read of the file, and discard comment lines (i.e. where first character is #)?