ansible / ansible-runner

A tool and python library that helps when interfacing with Ansible directly or as part of another system whether that be through a container image interface, as a standalone tool, or as a Python module that can be imported. The goal is to provide a stable and consistent interface abstraction to Ansible.
Other
968 stars 356 forks source link

Updating UTC handing to use UTC aware objects #1285

Closed radez closed 8 months ago

radez commented 1 year ago

Python 3.12 will throw DeprecationWarning: datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.now(datetime.UTC)

Shrews commented 8 months ago

Superseded by https://github.com/ansible/ansible-runner/pull/1348 which adds proper 3.12 testing.