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
database_view_info: Query database_view #195
database_view_info: Query database_view #195
Conversation
Build failed. ✔️ build-ansible-collection SUCCESS in 3m 00s |
Sorry @tima , I have just pushed this PR , but something extrange happened on the validation test. Let me understand what is happening I'm seeing errors on the validation code not my module code. Could you please help me understand what is the matter? |
a0fb009
to
145ed8e
Compare
Build failed. ✔️ build-ansible-collection SUCCESS in 2m 58s |
I've just rebased to the last main commit and still failing validation code, .. could somebody help me to understand this error please? |
Hi @toni-moreno. It looks like doc in some module can not be parsed to yaml. Can you check if all docs that you are created are valid yaml files. |
Use command
Also |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use make sanity
in your development process. It just executes sanity test. In yours case there were some small errors inside docs, that must be fixed.
- use return_fields to limit the fields to be returned. | ||
type: list | ||
returned: success | ||
type: list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate of type: list
element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @juremedvesek than you very much for you help. I'm new coding ansible modules and , I think I have not build my development environment properly.
When I exec make sanity
I have this message
toni@desktop01:/servicenow.itsm$ make sanity
Makefile:12: *** Place collection at <WHATEVER>/ansible_collections/servicenow/itsm. Alto.
I've seen what is suposed to to looking the Makefile.
.PHONY: sanity
sanity: ## Run sanity tests
pip install -r sanity.requirements
black -t py27 --check --diff --color plugins tests/unit
flake8
ansible-test sanity --docker
if I exec black -t py27 --check --diff --color plugins tests/unit
this is my output.
Traceback (most recent call last):
File "/home/toni/.local/bin/black", line 8, in <module>
sys.exit(patched_main())
File "/home/toni/.local/lib/python3.8/site-packages/black/__init__.py", line 1372, in patched_main
patch_click()
File "/home/toni/.local/lib/python3.8/site-packages/black/__init__.py", line 1358, in patch_click
from click import _unicodefun
ImportError: cannot import name '_unicodefun' from 'click' (/home/toni/.local/lib/python3.8/site-packages/click/__init__.py)
Let me know if there is any document with information to build a good developer environment , to run these checks , please.
Thank you very much and sorry for my poor skills on this kind of working
145ed8e
to
f57a704
Compare
Build failed. ✔️ build-ansible-collection SUCCESS in 3m 01s |
@juremedvesek , I've just discovered the After creating my venv I still have this error after running
|
f57a704
to
c17b7d2
Compare
Build failed. ✔️ build-ansible-collection SUCCESS in 3m 02s |
@juremedvesek , it seems that error But sanity.requierements needs for black <=21.12b0 ... What to do? |
c17b7d2
to
8b26f8f
Compare
Build failed. ✔️ build-ansible-collection SUCCESS in 2m 57s |
8b26f8f
to
90d70f7
Compare
Build failed. ✔️ build-ansible-collection SUCCESS in 2m 58s |
90d70f7
to
8c0598f
Compare
Build succeeded. ✔️ build-ansible-collection SUCCESS in 2m 59s |
hello @juremedvesek I finally could build my working env , I have open a PR with the fix here (#197) |
4e2e72f
to
877d4ea
Compare
Build failed. ✔️ build-ansible-collection SUCCESS in 2m 58s |
@Akasurde there is something extrange in the sanity check . I didn't added anything about documentation but this error happened in last check.
the fact is there is there is no Could you help me to understant what is happening? |
877d4ea
to
47e462a
Compare
Hello @Akasurde I've rebased and added |
Build succeeded. ✔️ build-ansible-collection SUCCESS in 3m 11s |
Thanks for your interest in the project, but this issue has been idle for a long time, so we are closing it. If you would still like this considered for inclusion in the project, please feel free to re-open the PR and rebase it agaiinst current main, and we can pick up the conversation. |
SUMMARY
Add new module to query any existing database view.
ISSUE TYPE
COMPONENT NAME
database_view_info
ADDITIONAL INFORMATION
Example of module usage
The output will be
note that my database view have been defined as described in the picture.