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

TypeError: '>' not supported between instances of 'tuple' and 'int' #489

Open
matthiaslink77 opened this issue Oct 24, 2024 · 3 comments
Open
Labels

Comments

@matthiaslink77
Copy link

TASK [opitzconsulting.ansible_oracle.oradb_manage_grants : Manage role grants (pdb)] ******************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: '>' not supported between instances of 'tuple' and 'int'

Seems like a similar issue as mentioned before for ansible-oracle-modules in #174, #175 and #176 :

Files for the following modules contain "if result > 0" or "if result [0] > 0" or if result [0][0] > 0"

oracle_grants.py
oracle_directory.py
oracle_user.py

oracle_role.py
oracle_profile.py
oracle_asmdg.py
oracle_asmvol.py

Should be "if result" instead.

Best regards, Matthias.

@Rendanic
Copy link
Collaborator

Hi Matthias,
this needs some mor einformations, bevore I can analyze it.

Are you using CDB or nonCDB?
Grants are set in oracle_databases?

Kind Regards
Thorsten

Copy link

This issue is stale because it has been open for 30 days with no activity. Auto close in 30 days.

@github-actions github-actions bot added the stale label Dec 19, 2024
@matthiaslink77
Copy link
Author

Dear Thorsten, thanks a lot. I am using CDB. Yes - I defined some grants in oracle_databases. To me, this looks like an issue with the underlying Python Syntax. Beste Grüße, Matthias

@github-actions github-actions bot removed the stale label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants