ScaleComputing / HyperCoreAnsibleCollection

Official Ansible collection for Scale Computing SC//HyperCore (HC3) v1 API
GNU General Public License v3.0
12 stars 8 forks source link

CI do not assume test ansible controller has configured timezone #209

Closed justinc1 closed 1 year ago

justinc1 commented 1 year ago

Failed CI job https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/4696220997/jobs/8326124886#step:8:49

The timezone from https://ipapi.co/timezone is correct one, it is based on public IP address/geolocation. But out test ansible controller is not configured with timezone. UTC is just OK for servers.

We can convert unix epoch to local time with python and use pytz for that. pytz is used only for testing.

The timezone from ipapi.co is not needed anymore.

integ test after change: https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/4697144688