From bdfa99af9f57e0c9d3f7d747935f61917a66e2ba Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Tue, 5 Mar 2019 13:55:51 +0800 Subject: [PATCH] cleaning up class names in azure_rm_mysql* (#53260) --- .../modules/cloud/azure/azure_rm_mysqlconfiguration.py | 10 +++++----- .../cloud/azure/azure_rm_mysqlconfiguration_facts.py | 6 +++--- .../modules/cloud/azure/azure_rm_mysqldatabase.py | 10 +++++----- .../cloud/azure/azure_rm_mysqldatabase_facts.py | 6 +++--- .../modules/cloud/azure/azure_rm_mysqlfirewallrule.py | 10 +++++----- .../cloud/azure/azure_rm_mysqlfirewallrule_facts.py | 6 +++--- .../modules/cloud/azure/azure_rm_mysqlserver.py | 10 +++++----- .../modules/cloud/azure/azure_rm_mysqlserver_facts.py | 6 +++--- 8 files changed, 32 insertions(+), 32 deletions(-) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_mysqlconfiguration.py b/lib/ansible/modules/cloud/azure/azure_rm_mysqlconfiguration.py index d5d63b5910..32ddb96c43 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_mysqlconfiguration.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_mysqlconfiguration.py @@ -90,7 +90,7 @@ class Actions: NoAction, Create, Update, Delete = range(4) -class AzureRMConfigurations(AzureRMModuleBase): +class AzureRMMySqlConfiguration(AzureRMModuleBase): def __init__(self): self.module_arg_spec = dict( @@ -125,9 +125,9 @@ class AzureRMConfigurations(AzureRMModuleBase): self.state = None self.to_do = Actions.NoAction - super(AzureRMConfigurations, self).__init__(derived_arg_spec=self.module_arg_spec, - supports_check_mode=True, - supports_tags=False) + super(AzureRMMySqlConfiguration, self).__init__(derived_arg_spec=self.module_arg_spec, + supports_check_mode=True, + supports_tags=False) def exec_module(self, **kwargs): @@ -234,7 +234,7 @@ class AzureRMConfigurations(AzureRMModuleBase): def main(): """Main execution""" - AzureRMConfigurations() + AzureRMMySqlConfiguration() if __name__ == '__main__': diff --git a/lib/ansible/modules/cloud/azure/azure_rm_mysqlconfiguration_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_mysqlconfiguration_facts.py index aaffd80ac2..b9bb028dbe 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_mysqlconfiguration_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_mysqlconfiguration_facts.py @@ -106,7 +106,7 @@ except ImportError: pass -class AzureRMMySQLConfigurationFacts(AzureRMModuleBase): +class AzureRMMySqlConfigurationFacts(AzureRMModuleBase): def __init__(self): # define user inputs into argument self.module_arg_spec = dict( @@ -131,7 +131,7 @@ class AzureRMMySQLConfigurationFacts(AzureRMModuleBase): self.resource_group = None self.server_name = None self.name = None - super(AzureRMMySQLConfigurationFacts, self).__init__(self.module_arg_spec, supports_tags=False) + super(AzureRMMySqlConfigurationFacts, self).__init__(self.module_arg_spec, supports_tags=False) def exec_module(self, **kwargs): for key in self.module_arg_spec: @@ -202,7 +202,7 @@ class AzureRMMySQLConfigurationFacts(AzureRMModuleBase): def main(): - AzureRMMySQLConfigurationFacts() + AzureRMMySqlConfigurationFacts() if __name__ == '__main__': diff --git a/lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py b/lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py index bf2a654f4a..76a54df982 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py @@ -108,7 +108,7 @@ class Actions: NoAction, Create, Update, Delete = range(4) -class AzureRMDatabases(AzureRMModuleBase): +class AzureRMMySqlDatabase(AzureRMModuleBase): """Configuration class for an Azure RM MySQL Database resource""" def __init__(self): @@ -153,9 +153,9 @@ class AzureRMDatabases(AzureRMModuleBase): self.state = None self.to_do = Actions.NoAction - super(AzureRMDatabases, self).__init__(derived_arg_spec=self.module_arg_spec, - supports_check_mode=True, - supports_tags=False) + super(AzureRMMySqlDatabase, self).__init__(derived_arg_spec=self.module_arg_spec, + supports_check_mode=True, + supports_tags=False) def exec_module(self, **kwargs): """Main module execution method""" @@ -299,7 +299,7 @@ class AzureRMDatabases(AzureRMModuleBase): def main(): """Main execution""" - AzureRMDatabases() + AzureRMMySqlDatabase() if __name__ == '__main__': diff --git a/lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase_facts.py index 9e94e3e167..bc0b7f2b96 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase_facts.py @@ -111,7 +111,7 @@ except ImportError: pass -class AzureRMDatabasesFacts(AzureRMModuleBase): +class AzureRMMySqlDatabaseFacts(AzureRMModuleBase): def __init__(self): # define user inputs into argument self.module_arg_spec = dict( @@ -134,7 +134,7 @@ class AzureRMDatabasesFacts(AzureRMModuleBase): self.resource_group = None self.server_name = None self.name = None - super(AzureRMDatabasesFacts, self).__init__(self.module_arg_spec, supports_tags=False) + super(AzureRMMySqlDatabaseFacts, self).__init__(self.module_arg_spec, supports_tags=False) def exec_module(self, **kwargs): for key in self.module_arg_spec: @@ -194,7 +194,7 @@ class AzureRMDatabasesFacts(AzureRMModuleBase): def main(): - AzureRMDatabasesFacts() + AzureRMMySqlDatabaseFacts() if __name__ == '__main__': diff --git a/lib/ansible/modules/cloud/azure/azure_rm_mysqlfirewallrule.py b/lib/ansible/modules/cloud/azure/azure_rm_mysqlfirewallrule.py index 8c48e5783f..c2bf764ab4 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_mysqlfirewallrule.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_mysqlfirewallrule.py @@ -93,7 +93,7 @@ class Actions: NoAction, Create, Update, Delete = range(4) -class AzureRMFirewallRules(AzureRMModuleBase): +class AzureRMMySqlFirewallRule(AzureRMModuleBase): """Configuration class for an Azure RM MySQL firewall rule resource""" def __init__(self): @@ -133,9 +133,9 @@ class AzureRMFirewallRules(AzureRMModuleBase): self.state = None self.to_do = Actions.NoAction - super(AzureRMFirewallRules, self).__init__(derived_arg_spec=self.module_arg_spec, - supports_check_mode=True, - supports_tags=False) + super(AzureRMMySqlFirewallRule, self).__init__(derived_arg_spec=self.module_arg_spec, + supports_check_mode=True, + supports_tags=False) def exec_module(self, **kwargs): """Main module execution method""" @@ -268,7 +268,7 @@ class AzureRMFirewallRules(AzureRMModuleBase): def main(): """Main execution""" - AzureRMFirewallRules() + AzureRMMySqlFirewallRule() if __name__ == '__main__': diff --git a/lib/ansible/modules/cloud/azure/azure_rm_mysqlfirewallrule_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_mysqlfirewallrule_facts.py index dc57ed4760..c47b5213ce 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_mysqlfirewallrule_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_mysqlfirewallrule_facts.py @@ -106,7 +106,7 @@ except ImportError: pass -class AzureRMMySQLFirewallRulesFacts(AzureRMModuleBase): +class AzureRMMySqlFirewallRuleFacts(AzureRMModuleBase): def __init__(self): # define user inputs into argument self.module_arg_spec = dict( @@ -130,7 +130,7 @@ class AzureRMMySQLFirewallRulesFacts(AzureRMModuleBase): self.resource_group = None self.server_name = None self.name = None - super(AzureRMMySQLFirewallRulesFacts, self).__init__(self.module_arg_spec, supports_tags=False) + super(AzureRMMySqlFirewallRuleFacts, self).__init__(self.module_arg_spec, supports_tags=False) def exec_module(self, **kwargs): for key in self.module_arg_spec: @@ -190,7 +190,7 @@ class AzureRMMySQLFirewallRulesFacts(AzureRMModuleBase): def main(): - AzureRMMySQLFirewallRulesFacts() + AzureRMMySqlFirewallRuleFacts() if __name__ == '__main__': diff --git a/lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py b/lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py index 559f9dc879..f4155d4898 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py @@ -149,7 +149,7 @@ class Actions: NoAction, Create, Update, Delete = range(4) -class AzureRMServers(AzureRMModuleBase): +class AzureRMMySqlServers(AzureRMModuleBase): """Configuration class for an Azure RM MySQL Server resource""" def __init__(self): @@ -206,9 +206,9 @@ class AzureRMServers(AzureRMModuleBase): self.state = None self.to_do = Actions.NoAction - super(AzureRMServers, self).__init__(derived_arg_spec=self.module_arg_spec, - supports_check_mode=True, - supports_tags=True) + super(AzureRMMySqlServers, self).__init__(derived_arg_spec=self.module_arg_spec, + supports_check_mode=True, + supports_tags=True) def exec_module(self, **kwargs): """Main module execution method""" @@ -374,7 +374,7 @@ class AzureRMServers(AzureRMModuleBase): def main(): """Main execution""" - AzureRMServers() + AzureRMMySqlServers() if __name__ == '__main__': diff --git a/lib/ansible/modules/cloud/azure/azure_rm_mysqlserver_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_mysqlserver_facts.py index 9b5e69cd8f..7273aee1ad 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_mysqlserver_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_mysqlserver_facts.py @@ -159,7 +159,7 @@ except ImportError: pass -class AzureRMServersFacts(AzureRMModuleBase): +class AzureRMMySqlServerFacts(AzureRMModuleBase): def __init__(self): # define user inputs into argument self.module_arg_spec = dict( @@ -181,7 +181,7 @@ class AzureRMServersFacts(AzureRMModuleBase): self.resource_group = None self.name = None self.tags = None - super(AzureRMServersFacts, self).__init__(self.module_arg_spec, supports_tags=False) + super(AzureRMMySqlServerFacts, self).__init__(self.module_arg_spec, supports_tags=False) def exec_module(self, **kwargs): for key in self.module_arg_spec: @@ -246,7 +246,7 @@ class AzureRMServersFacts(AzureRMModuleBase): def main(): - AzureRMServersFacts() + AzureRMMySqlServerFacts() if __name__ == '__main__':