mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-14 17:10:53 -07:00
[stable-1] mysql_info: fix TypeError failure when there are databases that do not contain tables (#209)
* mysql_info: fix TypeError failure when there are databases that do not contain tables (#205)
* mysql_info: fix TypeError failure when there are databases that do not contain tables
* Add changelog fragment
(cherry picked from commit a1f419d541
)
* Fix sanity errors
This commit is contained in:
parent
f49206d3b3
commit
dbcc7e7e60
4 changed files with 28 additions and 1 deletions
|
@ -191,3 +191,25 @@
|
|||
state: absent
|
||||
|
||||
- include: issue-28.yml
|
||||
|
||||
# https://github.com/ansible-collections/community.mysql/issues/204
|
||||
- name: Create database containing only views
|
||||
mysql_db:
|
||||
<<: *mysql_params
|
||||
name: allviews
|
||||
|
||||
- name: Create view
|
||||
mysql_query:
|
||||
<<: *mysql_params
|
||||
login_db: allviews
|
||||
query: 'CREATE VIEW v_today (today) AS SELECT CURRENT_DATE'
|
||||
|
||||
- name: Fetch info
|
||||
mysql_info:
|
||||
<<: *mysql_params
|
||||
register: result
|
||||
|
||||
- name: Check
|
||||
assert:
|
||||
that:
|
||||
result.databases.allviews.size == 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue