diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2017-07-27 02:22:17 -0700 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2017-07-27 15:37:26 -0700 |
commit | 30a688d8d3540b1d49f36425950f8abe52adea55 (patch) | |
tree | e9c81467548836e7bff1a036ee4ebdfd8973a273 /lib/ansible/modules/cloud/azure/azure_rm_publicipaddress_facts.py | |
parent | 3a2670e0fdb22939f38a9f08f038d2b3623e12df (diff) | |
download | ansible-30a688d8d3540b1d49f36425950f8abe52adea55.tar.gz |
Update conventions in azure modules
* Remove wildcard imports
* Update GPL header to the one-line form
* Add from __future__ imports
Diffstat (limited to 'lib/ansible/modules/cloud/azure/azure_rm_publicipaddress_facts.py')
-rw-r--r-- | lib/ansible/modules/cloud/azure/azure_rm_publicipaddress_facts.py | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/lib/ansible/modules/cloud/azure/azure_rm_publicipaddress_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_publicipaddress_facts.py index 1fa0389cce..eae11019d9 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_publicipaddress_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_publicipaddress_facts.py @@ -3,21 +3,10 @@ # Copyright (c) 2016 Matt Davis, <mdavis@ansible.com> # Chris Houseknecht, <house@redhat.com> # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see <http://www.gnu.org/licenses/>. -# +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import absolute_import, division, print_function +__metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.0', @@ -91,11 +80,6 @@ azure_publicipaddresses: "type": "Microsoft.Network/publicIPAddresses" }] ''' - - -from ansible.module_utils.basic import * -from ansible.module_utils.azure_rm_common import * - try: from msrestazure.azure_exceptions import CloudError from azure.common import AzureMissingResourceHttpError, AzureHttpError @@ -103,6 +87,8 @@ except: # This is handled in azure_rm_common pass +from ansible.module_utils.azure_rm_common import AzureRMModuleBase + AZURE_OBJECT_CLASS = 'PublicIp' @@ -201,6 +187,6 @@ class AzureRMPublicIPFacts(AzureRMModuleBase): def main(): AzureRMPublicIPFacts() + if __name__ == '__main__': main() - |