Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to Python3 - No cmp support #150

Open
capitanh opened this issue Jul 24, 2020 · 2 comments
Open

Migration to Python3 - No cmp support #150

capitanh opened this issue Jul 24, 2020 · 2 comments

Comments

@capitanh
Copy link

Are you planning a full python3 support in the future? After upgrading our ddbb servers to centos 8 we were forced to use python3, and some of your ansible modules stopped working. Specifically, the use of cmp() in oracle_profile is no longer supported in python3. We found a workaround for that one, but then oracle_role also failed. It looks like some others will fail too... It would be great if you could make this (incredibly useful) set of modules full python3-compatible

Thanks for your work

@serpro69
Copy link

Any updates on this. Facing the same issue :/

@ari-stark
Copy link

Try to change if cmp(dict(current_properties), dict(wanted_attributes)) is not 0: by if dict(current_properties) != dict(wanted_attributes):.

There's no real reason to use comparison when you just want to know if it's different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants