From 572e9a895955358e0b69eec7caebb7ab066daf81 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 4 Apr 2017 14:16:34 -0700 Subject: [PATCH] Update the metadata of the proxysql modules to 1.0 final format --- .../database/proxysql/proxysql_backend_servers.py | 9 ++++----- .../database/proxysql/proxysql_global_variables.py | 9 ++++----- .../modules/database/proxysql/proxysql_manage_config.py | 9 ++++----- .../modules/database/proxysql/proxysql_mysql_users.py | 9 ++++----- .../modules/database/proxysql/proxysql_query_rules.py | 9 ++++----- .../database/proxysql/proxysql_replication_hostgroups.py | 9 ++++----- .../modules/database/proxysql/proxysql_scheduler.py | 9 ++++----- 7 files changed, 28 insertions(+), 35 deletions(-) diff --git a/lib/ansible/modules/database/proxysql/proxysql_backend_servers.py b/lib/ansible/modules/database/proxysql/proxysql_backend_servers.py index 969a78cc40d..019cc979d34 100644 --- a/lib/ansible/modules/database/proxysql/proxysql_backend_servers.py +++ b/lib/ansible/modules/database/proxysql/proxysql_backend_servers.py @@ -179,11 +179,10 @@ stdout: } ''' -ANSIBLE_METADATA = { - 'version': '1.0', - 'supported_by': 'community', - 'status': ['stableinterface'] -} +ANSIBLE_METADATA = {'metadata_version': '1.0', + 'status': ['stableinterface'], + 'supported_by': 'community'} + from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.mysql import mysql_connect diff --git a/lib/ansible/modules/database/proxysql/proxysql_global_variables.py b/lib/ansible/modules/database/proxysql/proxysql_global_variables.py index 617ec185613..d6fa6648f3c 100644 --- a/lib/ansible/modules/database/proxysql/proxysql_global_variables.py +++ b/lib/ansible/modules/database/proxysql/proxysql_global_variables.py @@ -104,11 +104,10 @@ stdout: } ''' -ANSIBLE_METADATA = { - 'version': '1.0', - 'supported_by': 'community', - 'status': ['stableinterface'] -} +ANSIBLE_METADATA = {'metadata_version': '1.0', + 'status': ['stableinterface'], + 'supported_by': 'community'} + from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.mysql import mysql_connect diff --git a/lib/ansible/modules/database/proxysql/proxysql_manage_config.py b/lib/ansible/modules/database/proxysql/proxysql_manage_config.py index c440d29f405..20500cdd397 100644 --- a/lib/ansible/modules/database/proxysql/proxysql_manage_config.py +++ b/lib/ansible/modules/database/proxysql/proxysql_manage_config.py @@ -119,11 +119,10 @@ stdout: } ''' -ANSIBLE_METADATA = { - 'version': '1.0', - 'supported_by': 'community', - 'status': ['stableinterface'] -} +ANSIBLE_METADATA = {'metadata_version': '1.0', + 'status': ['stableinterface'], + 'supported_by': 'community'} + from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.mysql import mysql_connect diff --git a/lib/ansible/modules/database/proxysql/proxysql_mysql_users.py b/lib/ansible/modules/database/proxysql/proxysql_mysql_users.py index e68e516fce9..16b1cae84ff 100644 --- a/lib/ansible/modules/database/proxysql/proxysql_mysql_users.py +++ b/lib/ansible/modules/database/proxysql/proxysql_mysql_users.py @@ -170,11 +170,10 @@ stdout: } ''' -ANSIBLE_METADATA = { - 'version': '1.0', - 'supported_by': 'community', - 'status': ['stableinterface'] -} +ANSIBLE_METADATA = {'metadata_version': '1.0', + 'status': ['stableinterface'], + 'supported_by': 'community'} + from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.mysql import mysql_connect diff --git a/lib/ansible/modules/database/proxysql/proxysql_query_rules.py b/lib/ansible/modules/database/proxysql/proxysql_query_rules.py index d85e4102256..9b214edf9e5 100644 --- a/lib/ansible/modules/database/proxysql/proxysql_query_rules.py +++ b/lib/ansible/modules/database/proxysql/proxysql_query_rules.py @@ -251,11 +251,10 @@ stdout: } ''' -ANSIBLE_METADATA = { - 'version': '1.0', - 'supported_by': 'community', - 'status': ['stableinterface'] -} +ANSIBLE_METADATA = {'metadata_version': '1.0', + 'status': ['stableinterface'], + 'supported_by': 'community'} + from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.mysql import mysql_connect diff --git a/lib/ansible/modules/database/proxysql/proxysql_replication_hostgroups.py b/lib/ansible/modules/database/proxysql/proxysql_replication_hostgroups.py index d32d6b98b2a..254ce80fc7f 100644 --- a/lib/ansible/modules/database/proxysql/proxysql_replication_hostgroups.py +++ b/lib/ansible/modules/database/proxysql/proxysql_replication_hostgroups.py @@ -126,11 +126,10 @@ stdout: } ''' -ANSIBLE_METADATA = { - 'version': '1.0', - 'supported_by': 'community', - 'status': ['stableinterface'] -} +ANSIBLE_METADATA = {'metadata_version': '1.0', + 'status': ['stableinterface'], + 'supported_by': 'community'} + from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.mysql import mysql_connect diff --git a/lib/ansible/modules/database/proxysql/proxysql_scheduler.py b/lib/ansible/modules/database/proxysql/proxysql_scheduler.py index 714d880c60b..cbda97ddb24 100644 --- a/lib/ansible/modules/database/proxysql/proxysql_scheduler.py +++ b/lib/ansible/modules/database/proxysql/proxysql_scheduler.py @@ -156,11 +156,10 @@ stdout: } ''' -ANSIBLE_METADATA = { - 'version': '1.0', - 'supported_by': 'community', - 'status': ['stableinterface'] -} +ANSIBLE_METADATA = {'metadata_version': '1.0', + 'status': ['stableinterface'], + 'supported_by': 'community'} + from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.mysql import mysql_connect