oravirt/ansible-oracle-modules

oracle_profile

sathishbbala-yb opened this issue · 1 comments

I get the following error attempting to use the oracle_profile.
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NameError: name 'cmp' is not defined
That's the line where the code fails.
# Convert to dict and compare current with wanted
if cmp(dict(current_attributes),dict(wanted_attributes)) is not 0:

The python version that I am using is below:
Python 3.6.8 (default, Jun 11 2019, 15:15:01)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux

Has anyone encountered this issue?

cmp not available on python3. switched to use python 2.7.5 and it is working now