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

Inventory - sc_timeout changed to int #231

Closed PolonaM closed 1 year ago

PolonaM commented 1 year ago

When reading timeout from env variable SC_TIMEOUT (which is string) it needs to be changed to int to avoid inventory parse error (specifically error in "/usr/lib/python3.10/socket.py", line 830, in create_connection sock.settimeout(timeout)). Also try-except was removed since KeyError is not raised in case if env variable doesn't exist.