summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/cloud/azure/azure_rm_securitygroup_facts.py
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2017-07-27 02:22:17 -0700
committerToshio Kuratomi <a.badger@gmail.com>2017-07-27 15:37:26 -0700
commit30a688d8d3540b1d49f36425950f8abe52adea55 (patch)
treee9c81467548836e7bff1a036ee4ebdfd8973a273 /lib/ansible/modules/cloud/azure/azure_rm_securitygroup_facts.py
parent3a2670e0fdb22939f38a9f08f038d2b3623e12df (diff)
downloadansible-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_securitygroup_facts.py')
-rw-r--r--lib/ansible/modules/cloud/azure/azure_rm_securitygroup_facts.py27
1 files changed, 7 insertions, 20 deletions
diff --git a/lib/ansible/modules/cloud/azure/azure_rm_securitygroup_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_securitygroup_facts.py
index 4dee9df8b3..58b4503407 100644
--- a/lib/ansible/modules/cloud/azure/azure_rm_securitygroup_facts.py
+++ b/lib/ansible/modules/cloud/azure/azure_rm_securitygroup_facts.py
@@ -3,21 +3,11 @@
# 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',
'status': ['preview'],
@@ -202,10 +192,6 @@ azure_securitygroups:
''' # NOQA
-
-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
@@ -213,6 +199,8 @@ except:
# This is handled in azure_rm_common
pass
+from ansible.module_utils.azure_rm_common import AzureRMModuleBase
+
AZURE_OBJECT_CLASS = 'NetworkSecurityGroup'
@@ -289,4 +277,3 @@ def main():
if __name__ == '__main__':
main()
-