ambitus / pyzkiln

A set of Python building blocks to help with z/OS automation
Apache License 2.0
9 stars 12 forks source link

Added support for ZOAU 1.3 #25

Closed mtcohoon closed 2 months ago

mtcohoon commented 2 months ago

ZOAU 1.3 was recently released, and this new release introduced some changes to the names of modules and functions. https://www.ibm.com/docs/en/zoau/1.3.x?topic=planning-migrating-zoau-v13-from-v12x-earlier

One change was the renaming of the types.py module ztypes.py. This change affects pyzkiln's runrexx.py file.

This PR introduces support for ZOAU 1.3. The zoautil_py.types import in runrexx.py has been updated to first attempt an import of zoautil_py.ztypes. This is done within a try/catch, and if there is an ImportError, we fall back to importing zoautil_py.types. This should provide support for both ZOAU 1.2 and ZOAU 1.3.