SUSE / salt-shaptools

Salt execution module and state to manage SAP Applications (HANA only at the moment) and SUSE Linux Enterprise High Availability components
Apache License 2.0
14 stars 11 forks source link

hana: Fix imp reload usage in py2 #66

Closed arbulu89 closed 4 years ago

arbulu89 commented 4 years ago

The reload_hdb_connector method in py2 was not working, as the importlib.reload method doesn't exist. Now the code imports the correct reload from importlib/imp depending on the python version. I will run tests now for py2 and py3.

arbulu89 commented 4 years ago

You were too fast merging @stefanotorresi hehe I have not finished testing everything yet, and maybe there is some issue. My fault anyway, I should've set in draft first

stefanotorresi commented 4 years ago

gah, sorry! yep, I guess draft is made exactly for that purpose.