mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-06 02:30:32 -07:00
Add changes as per PR review
This commit is contained in:
parent
b5f59ffdf7
commit
20ce789f1b
3 changed files with 5 additions and 5 deletions
|
@ -1,2 +1,2 @@
|
|||
minor_changes:
|
||||
- mysql_info - add `full_version` and `suffix` return values (https://github.com/ansible-collections/community.mysql/issues/114).
|
||||
- mysql_info - add `version.full` and `version.suffix` return values (https://github.com/ansible-collections/community.mysql/issues/114).
|
||||
|
|
|
@ -144,7 +144,7 @@ version:
|
|||
returned: if not excluded by filter
|
||||
type: str
|
||||
sample: "MariaDB"
|
||||
full_version:
|
||||
full:
|
||||
description: Full server version.
|
||||
returned: if not excluded by filter
|
||||
type: str
|
||||
|
@ -368,7 +368,7 @@ class MySQL_Info(object):
|
|||
version = self.info['settings']['version'].split('.')
|
||||
|
||||
# full_version = "5.5.60-MariaDB"
|
||||
full_version = self.info['settings']['version']
|
||||
full = self.info['settings']['version']
|
||||
|
||||
# release = "60"
|
||||
release = version[2].split('-')[0]
|
||||
|
@ -387,7 +387,7 @@ class MySQL_Info(object):
|
|||
minor=int(version[1]),
|
||||
release=int(release),
|
||||
suffix=str(suffix),
|
||||
full_version=str(full_version),
|
||||
full=str(full),
|
||||
)
|
||||
|
||||
def __get_global_status(self):
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- result.changed == false
|
||||
- "mysql_version in result.version.full_version"
|
||||
- "mysql_version in result.version.full"
|
||||
- result.settings != {}
|
||||
- result.global_status != {}
|
||||
- result.databases != {}
|
||||
|
|
Loading…
Add table
Reference in a new issue