Add changes as per PR review

This commit is contained in:
Jorge-Rodriguez 2021-03-15 14:15:43 +02:00 committed by Sebastian Gumprich
parent b5f59ffdf7
commit 20ce789f1b
3 changed files with 5 additions and 5 deletions

View file

@ -1,2 +1,2 @@
minor_changes: 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).

View file

@ -144,7 +144,7 @@ version:
returned: if not excluded by filter returned: if not excluded by filter
type: str type: str
sample: "MariaDB" sample: "MariaDB"
full_version: full:
description: Full server version. description: Full server version.
returned: if not excluded by filter returned: if not excluded by filter
type: str type: str
@ -368,7 +368,7 @@ class MySQL_Info(object):
version = self.info['settings']['version'].split('.') version = self.info['settings']['version'].split('.')
# full_version = "5.5.60-MariaDB" # full_version = "5.5.60-MariaDB"
full_version = self.info['settings']['version'] full = self.info['settings']['version']
# release = "60" # release = "60"
release = version[2].split('-')[0] release = version[2].split('-')[0]
@ -387,7 +387,7 @@ class MySQL_Info(object):
minor=int(version[1]), minor=int(version[1]),
release=int(release), release=int(release),
suffix=str(suffix), suffix=str(suffix),
full_version=str(full_version), full=str(full),
) )
def __get_global_status(self): def __get_global_status(self):

View file

@ -48,7 +48,7 @@
- assert: - assert:
that: that:
- result.changed == false - result.changed == false
- "mysql_version in result.version.full_version" - "mysql_version in result.version.full"
- result.settings != {} - result.settings != {}
- result.global_status != {} - result.global_status != {}
- result.databases != {} - result.databases != {}