From 0b2b56765cadbee5493d4e807671afa0fc7748a1 Mon Sep 17 00:00:00 2001 From: Jakob Meng Date: Thu, 28 Jul 2022 09:19:14 +0200 Subject: [PATCH] Fixed Python shebang and UTF-8 coding in modules Be consistent with Ansible docs [1], [2], [3]. [1] https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_documenting.html [2] https://docs.ansible.com/ansible-core/devel/dev_guide/testing/sanity/shebang.html [3] https://github.com/ansible/ansible/blob/b86a18bd273499f5d10e581821a47571690660e1/test/lib/ansible_test/_util/controller/sanity/code-smell/shebang.py Change-Id: Ia3976bb3fcca662cefa219edeef057bcb7143c01 --- plugins/doc_fragments/openstack.py | 1 + plugins/inventory/openstack.py | 3 +++ plugins/module_utils/ironic.py | 3 +++ plugins/module_utils/openstack.py | 3 +++ plugins/modules/address_scope.py | 4 ++-- plugins/modules/auth.py | 1 + plugins/modules/baremetal_inspect.py | 2 +- plugins/modules/baremetal_node.py | 2 +- plugins/modules/baremetal_node_action.py | 2 +- plugins/modules/baremetal_node_info.py | 2 +- plugins/modules/baremetal_port.py | 3 ++- plugins/modules/baremetal_port_info.py | 3 ++- plugins/modules/catalog_service.py | 2 ++ plugins/modules/coe_cluster.py | 1 + plugins/modules/coe_cluster_template.py | 1 + plugins/modules/compute_flavor.py | 1 + plugins/modules/compute_flavor_info.py | 1 + plugins/modules/compute_service_info.py | 2 ++ plugins/modules/config.py | 1 + plugins/modules/dns_zone.py | 2 ++ plugins/modules/dns_zone_info.py | 4 ++-- plugins/modules/endpoint.py | 1 + plugins/modules/federation_idp.py | 2 ++ plugins/modules/federation_idp_info.py | 2 ++ plugins/modules/federation_mapping.py | 2 ++ plugins/modules/federation_mapping_info.py | 2 ++ plugins/modules/floating_ip.py | 1 + plugins/modules/floating_ip_info.py | 4 ++-- plugins/modules/group_assignment.py | 2 ++ plugins/modules/host_aggregate.py | 2 ++ plugins/modules/identity_domain.py | 2 ++ plugins/modules/identity_domain_info.py | 2 ++ plugins/modules/identity_group.py | 2 ++ plugins/modules/identity_group_info.py | 1 + plugins/modules/identity_role.py | 2 ++ plugins/modules/identity_role_info.py | 2 +- plugins/modules/identity_user.py | 2 ++ plugins/modules/identity_user_info.py | 2 ++ plugins/modules/image.py | 1 + plugins/modules/image_info.py | 1 + plugins/modules/keypair.py | 1 + plugins/modules/keypair_info.py | 1 + plugins/modules/keystone_federation_protocol.py | 2 ++ plugins/modules/keystone_federation_protocol_info.py | 2 ++ plugins/modules/lb_health_monitor.py | 1 + plugins/modules/lb_listener.py | 1 + plugins/modules/lb_member.py | 1 + plugins/modules/lb_pool.py | 1 + plugins/modules/loadbalancer.py | 1 + plugins/modules/network.py | 1 + plugins/modules/networks_info.py | 1 + plugins/modules/neutron_rbac_policies_info.py | 2 +- plugins/modules/neutron_rbac_policy.py | 1 + plugins/modules/object.py | 1 + plugins/modules/object_container.py | 4 ++-- plugins/modules/port.py | 1 + plugins/modules/port_info.py | 1 + plugins/modules/project.py | 2 ++ plugins/modules/project_access.py | 1 + plugins/modules/project_info.py | 2 ++ plugins/modules/quota.py | 2 ++ plugins/modules/recordset.py | 2 ++ plugins/modules/role_assignment.py | 2 ++ plugins/modules/router.py | 3 ++- plugins/modules/routers_info.py | 1 + plugins/modules/security_group.py | 1 + plugins/modules/security_group_info.py | 4 ++-- plugins/modules/security_group_rule.py | 1 + plugins/modules/security_group_rule_info.py | 4 ++-- plugins/modules/server.py | 2 +- plugins/modules/server_action.py | 2 +- plugins/modules/server_group.py | 1 + plugins/modules/server_info.py | 1 + plugins/modules/server_metadata.py | 2 +- plugins/modules/server_volume.py | 2 +- plugins/modules/stack.py | 2 +- plugins/modules/stack_info.py | 2 +- plugins/modules/subnet.py | 2 +- plugins/modules/subnet_pool.py | 4 ++-- plugins/modules/subnets_info.py | 1 + plugins/modules/volume.py | 1 + plugins/modules/volume_backup.py | 4 ++-- plugins/modules/volume_backup_info.py | 4 ++-- plugins/modules/volume_info.py | 2 +- plugins/modules/volume_snapshot.py | 2 +- plugins/modules/volume_snapshot_info.py | 4 ++-- scripts/inventory/openstack_inventory.py | 1 + 87 files changed, 128 insertions(+), 38 deletions(-) diff --git a/plugins/doc_fragments/openstack.py b/plugins/doc_fragments/openstack.py index 067afa40..6cb13ee5 100644 --- a/plugins/doc_fragments/openstack.py +++ b/plugins/doc_fragments/openstack.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright: (c) 2014, Hewlett-Packard Development Company, L.P. diff --git a/plugins/inventory/openstack.py b/plugins/inventory/openstack.py index 064ada9d..75d5a2d1 100644 --- a/plugins/inventory/openstack.py +++ b/plugins/inventory/openstack.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + # Copyright (c) 2012, Marco Vito Moscaritolo # Copyright (c) 2013, Jesse Keating # Copyright (c) 2015, Hewlett-Packard Development Company, L.P. diff --git a/plugins/module_utils/ironic.py b/plugins/module_utils/ironic.py index 68ee80dc..44f53560 100644 --- a/plugins/module_utils/ironic.py +++ b/plugins/module_utils/ironic.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + # This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible diff --git a/plugins/module_utils/openstack.py b/plugins/module_utils/openstack.py index 2632e082..609e20fe 100644 --- a/plugins/module_utils/openstack.py +++ b/plugins/module_utils/openstack.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + # This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible diff --git a/plugins/modules/address_scope.py b/plugins/modules/address_scope.py index 6cfd6ef9..232b38e5 100644 --- a/plugins/modules/address_scope.py +++ b/plugins/modules/address_scope.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# coding: utf-8 -*- -# +# -*- coding: utf-8 -*- + # Copyright (c) 2021 by Uemit Seren # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/auth.py b/plugins/modules/auth.py index 1f2c516e..807b4b04 100644 --- a/plugins/modules/auth.py +++ b/plugins/modules/auth.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/baremetal_inspect.py b/plugins/modules/baremetal_inspect.py index 2ba32cec..0692f7ba 100644 --- a/plugins/modules/baremetal_inspect.py +++ b/plugins/modules/baremetal_inspect.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # (c) 2015-2016, Hewlett Packard Enterprise Development Company LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/baremetal_node.py b/plugins/modules/baremetal_node.py index 3bdab3f9..a1d51bf0 100644 --- a/plugins/modules/baremetal_node.py +++ b/plugins/modules/baremetal_node.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # (c) 2014, Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/baremetal_node_action.py b/plugins/modules/baremetal_node_action.py index c6661b59..58610331 100644 --- a/plugins/modules/baremetal_node_action.py +++ b/plugins/modules/baremetal_node_action.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # (c) 2015, Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/baremetal_node_info.py b/plugins/modules/baremetal_node_info.py index ea31421e..4f73cf00 100644 --- a/plugins/modules/baremetal_node_info.py +++ b/plugins/modules/baremetal_node_info.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # Copyright (c) 2021 by Red Hat, Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/baremetal_port.py b/plugins/modules/baremetal_port.py index 80a0255d..13c7a15c 100644 --- a/plugins/modules/baremetal_port.py +++ b/plugins/modules/baremetal_port.py @@ -1,5 +1,6 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- + # Copyright (c) 2021 by Red Hat, Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/baremetal_port_info.py b/plugins/modules/baremetal_port_info.py index 30b3a1d4..2c538407 100644 --- a/plugins/modules/baremetal_port_info.py +++ b/plugins/modules/baremetal_port_info.py @@ -1,5 +1,6 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- + # Copyright (c) 2021 by Red Hat, Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/catalog_service.py b/plugins/modules/catalog_service.py index b21019bd..24d2ba25 100644 --- a/plugins/modules/catalog_service.py +++ b/plugins/modules/catalog_service.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright 2016 Sam Yaple # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/coe_cluster.py b/plugins/modules/coe_cluster.py index 1911d0db..1c72c969 100644 --- a/plugins/modules/coe_cluster.py +++ b/plugins/modules/coe_cluster.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2018 Catalyst IT Ltd. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/coe_cluster_template.py b/plugins/modules/coe_cluster_template.py index d3daee71..49b8ed6e 100644 --- a/plugins/modules/coe_cluster_template.py +++ b/plugins/modules/coe_cluster_template.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2018 Catalyst IT Ltd. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/compute_flavor.py b/plugins/modules/compute_flavor.py index 68f87da1..a27f7c48 100644 --- a/plugins/modules/compute_flavor.py +++ b/plugins/modules/compute_flavor.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/compute_flavor_info.py b/plugins/modules/compute_flavor_info.py index 819356b3..4321d656 100644 --- a/plugins/modules/compute_flavor_info.py +++ b/plugins/modules/compute_flavor_info.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2015 IBM # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/compute_service_info.py b/plugins/modules/compute_service_info.py index 4890f654..dae452d0 100644 --- a/plugins/modules/compute_service_info.py +++ b/plugins/modules/compute_service_info.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2016 Hewlett-Packard Enterprise Corporation # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/config.py b/plugins/modules/config.py index 7a16ab74..0127a098 100644 --- a/plugins/modules/config.py +++ b/plugins/modules/config.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/dns_zone.py b/plugins/modules/dns_zone.py index a827b041..30c5ba48 100644 --- a/plugins/modules/dns_zone.py +++ b/plugins/modules/dns_zone.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2016 Hewlett-Packard Enterprise # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/dns_zone_info.py b/plugins/modules/dns_zone_info.py index c65fa2ff..79dabaea 100644 --- a/plugins/modules/dns_zone_info.py +++ b/plugins/modules/dns_zone_info.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# coding: utf-8 -*- -# +# -*- coding: utf-8 -*- + # Copyright (c) 2021 by Open Telekom Cloud, operated by T-Systems International GmbH # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/endpoint.py b/plugins/modules/endpoint.py index 07d6f5f7..1c84f7ba 100644 --- a/plugins/modules/endpoint.py +++ b/plugins/modules/endpoint.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright: (c) 2017, VEXXHOST, Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/federation_idp.py b/plugins/modules/federation_idp.py index 35606cca..937d04b4 100644 --- a/plugins/modules/federation_idp.py +++ b/plugins/modules/federation_idp.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/federation_idp_info.py b/plugins/modules/federation_idp_info.py index 4fe71949..0924f7fe 100644 --- a/plugins/modules/federation_idp_info.py +++ b/plugins/modules/federation_idp_info.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/federation_mapping.py b/plugins/modules/federation_mapping.py index 6c07a41d..38d71c7f 100644 --- a/plugins/modules/federation_mapping.py +++ b/plugins/modules/federation_mapping.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/federation_mapping_info.py b/plugins/modules/federation_mapping_info.py index 2ba317c9..47c6cc8a 100644 --- a/plugins/modules/federation_mapping_info.py +++ b/plugins/modules/federation_mapping_info.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/floating_ip.py b/plugins/modules/floating_ip.py index a0147313..29e18a78 100644 --- a/plugins/modules/floating_ip.py +++ b/plugins/modules/floating_ip.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright: (c) 2015, Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/floating_ip_info.py b/plugins/modules/floating_ip_info.py index ecb49542..e108a814 100644 --- a/plugins/modules/floating_ip_info.py +++ b/plugins/modules/floating_ip_info.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# coding: utf-8 -*- -# +# -*- coding: utf-8 -*- + # Copyright (c) 2021 by Open Telekom Cloud, operated by T-Systems International GmbH # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/group_assignment.py b/plugins/modules/group_assignment.py index ce8f28e1..ea105a22 100644 --- a/plugins/modules/group_assignment.py +++ b/plugins/modules/group_assignment.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/host_aggregate.py b/plugins/modules/host_aggregate.py index 0b81fd42..07047994 100644 --- a/plugins/modules/host_aggregate.py +++ b/plugins/modules/host_aggregate.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright 2016 Jakub Jursa # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/identity_domain.py b/plugins/modules/identity_domain.py index 0ae500d2..da89ac00 100644 --- a/plugins/modules/identity_domain.py +++ b/plugins/modules/identity_domain.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/identity_domain_info.py b/plugins/modules/identity_domain_info.py index 4654c82d..430d2ee8 100644 --- a/plugins/modules/identity_domain_info.py +++ b/plugins/modules/identity_domain_info.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2016 Hewlett-Packard Enterprise Corporation # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/identity_group.py b/plugins/modules/identity_group.py index 9de1a186..1242b8c7 100644 --- a/plugins/modules/identity_group.py +++ b/plugins/modules/identity_group.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2016 IBM # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/identity_group_info.py b/plugins/modules/identity_group_info.py index 446fe035..829764c6 100644 --- a/plugins/modules/identity_group_info.py +++ b/plugins/modules/identity_group_info.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2019, Phillipe Smith # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/identity_role.py b/plugins/modules/identity_role.py index fc913c76..3f629089 100644 --- a/plugins/modules/identity_role.py +++ b/plugins/modules/identity_role.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2016 IBM # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/identity_role_info.py b/plugins/modules/identity_role_info.py index 753c3c4e..0f92c16e 100644 --- a/plugins/modules/identity_role_info.py +++ b/plugins/modules/identity_role_info.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # Copyright (c) 2020, Sagi Shnaidman # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/identity_user.py b/plugins/modules/identity_user.py index 1389d5d7..aa8c2c93 100644 --- a/plugins/modules/identity_user.py +++ b/plugins/modules/identity_user.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/identity_user_info.py b/plugins/modules/identity_user_info.py index d095d5f6..4c76e279 100644 --- a/plugins/modules/identity_user_info.py +++ b/plugins/modules/identity_user_info.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2016 Hewlett-Packard Enterprise Corporation # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/image.py b/plugins/modules/image.py index fe976ad9..7a2bbd63 100644 --- a/plugins/modules/image.py +++ b/plugins/modules/image.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # Copyright (c) 2013, Benno Joy diff --git a/plugins/modules/image_info.py b/plugins/modules/image_info.py index 4e7ace62..85713dbc 100644 --- a/plugins/modules/image_info.py +++ b/plugins/modules/image_info.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/keypair.py b/plugins/modules/keypair.py index 5d86e5f3..319686d2 100644 --- a/plugins/modules/keypair.py +++ b/plugins/modules/keypair.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # Copyright (c) 2013, Benno Joy diff --git a/plugins/modules/keypair_info.py b/plugins/modules/keypair_info.py index 4b978988..874ce1eb 100644 --- a/plugins/modules/keypair_info.py +++ b/plugins/modules/keypair_info.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2021 T-Systems International GmbH # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/keystone_federation_protocol.py b/plugins/modules/keystone_federation_protocol.py index 5a33d8a3..f6ce7045 100644 --- a/plugins/modules/keystone_federation_protocol.py +++ b/plugins/modules/keystone_federation_protocol.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/keystone_federation_protocol_info.py b/plugins/modules/keystone_federation_protocol_info.py index b281b13e..855aa064 100644 --- a/plugins/modules/keystone_federation_protocol_info.py +++ b/plugins/modules/keystone_federation_protocol_info.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/lb_health_monitor.py b/plugins/modules/lb_health_monitor.py index ce4131a9..ddfc0c68 100644 --- a/plugins/modules/lb_health_monitor.py +++ b/plugins/modules/lb_health_monitor.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2020 Jesper Schmitz Mouridsen. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/lb_listener.py b/plugins/modules/lb_listener.py index cf15c573..a1e6f8fd 100644 --- a/plugins/modules/lb_listener.py +++ b/plugins/modules/lb_listener.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2018 Catalyst Cloud Ltd. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/lb_member.py b/plugins/modules/lb_member.py index 65684af9..b7c9e31d 100644 --- a/plugins/modules/lb_member.py +++ b/plugins/modules/lb_member.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2018 Catalyst Cloud Ltd. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/lb_pool.py b/plugins/modules/lb_pool.py index 775578db..fa7afbe3 100644 --- a/plugins/modules/lb_pool.py +++ b/plugins/modules/lb_pool.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2018 Catalyst Cloud Ltd. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/loadbalancer.py b/plugins/modules/loadbalancer.py index b4ff22c0..57d43dc2 100644 --- a/plugins/modules/loadbalancer.py +++ b/plugins/modules/loadbalancer.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2018 Catalyst Cloud Ltd. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/network.py b/plugins/modules/network.py index 3aa9ef7d..65ecba57 100644 --- a/plugins/modules/network.py +++ b/plugins/modules/network.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # Copyright (c) 2013, Benno Joy diff --git a/plugins/modules/networks_info.py b/plugins/modules/networks_info.py index 442c6847..8fbb8987 100644 --- a/plugins/modules/networks_info.py +++ b/plugins/modules/networks_info.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/neutron_rbac_policies_info.py b/plugins/modules/neutron_rbac_policies_info.py index b451bc26..99ec7ac6 100644 --- a/plugins/modules/neutron_rbac_policies_info.py +++ b/plugins/modules/neutron_rbac_policies_info.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # Copyright: Ansible Project # (c) 2021, Ashraf Hasson diff --git a/plugins/modules/neutron_rbac_policy.py b/plugins/modules/neutron_rbac_policy.py index f5162e08..94a5fc64 100644 --- a/plugins/modules/neutron_rbac_policy.py +++ b/plugins/modules/neutron_rbac_policy.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright: Ansible Project # (c) 2021, Ashraf Hasson diff --git a/plugins/modules/object.py b/plugins/modules/object.py index 22886955..38a40f45 100644 --- a/plugins/modules/object.py +++ b/plugins/modules/object.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # Copyright (c) 2013, Benno Joy diff --git a/plugins/modules/object_container.py b/plugins/modules/object_container.py index 0af0189c..5beef82b 100644 --- a/plugins/modules/object_container.py +++ b/plugins/modules/object_container.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# coding: utf-8 -*- -# +# -*- coding: utf-8 -*- + # Copyright (c) 2021 by Open Telekom Cloud, operated by T-Systems International GmbH # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/port.py b/plugins/modules/port.py index eb1f826d..c6204f92 100644 --- a/plugins/modules/port.py +++ b/plugins/modules/port.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/port_info.py b/plugins/modules/port_info.py index 66b10579..8622dc22 100644 --- a/plugins/modules/port_info.py +++ b/plugins/modules/port_info.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2016 IBM # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/project.py b/plugins/modules/project.py index 75cdeeb5..53a0b2dd 100644 --- a/plugins/modules/project.py +++ b/plugins/modules/project.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2015 IBM Corporation # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/project_access.py b/plugins/modules/project_access.py index 7e7c2aa0..5fe8e0a9 100644 --- a/plugins/modules/project_access.py +++ b/plugins/modules/project_access.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # This module is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/plugins/modules/project_info.py b/plugins/modules/project_info.py index 3c0f0642..a6f46b92 100644 --- a/plugins/modules/project_info.py +++ b/plugins/modules/project_info.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2016 Hewlett-Packard Enterprise Corporation # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/quota.py b/plugins/modules/quota.py index 75bff8ea..af9769ca 100644 --- a/plugins/modules/quota.py +++ b/plugins/modules/quota.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2016 Pason System Corporation # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/recordset.py b/plugins/modules/recordset.py index 98831d4c..2e7f52bb 100644 --- a/plugins/modules/recordset.py +++ b/plugins/modules/recordset.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2016 Hewlett-Packard Enterprise # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/role_assignment.py b/plugins/modules/role_assignment.py index e5cc35dd..a69ee5bf 100644 --- a/plugins/modules/role_assignment.py +++ b/plugins/modules/role_assignment.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- + # Copyright (c) 2016 IBM # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/router.py b/plugins/modules/router.py index 762a629a..74a9839e 100644 --- a/plugins/modules/router.py +++ b/plugins/modules/router.py @@ -1,5 +1,6 @@ #!/usr/bin/python -# +# -*- coding: utf-8 -*- + # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/routers_info.py b/plugins/modules/routers_info.py index 9b424058..22ac68eb 100644 --- a/plugins/modules/routers_info.py +++ b/plugins/modules/routers_info.py @@ -1,5 +1,6 @@ #!/usr/bin/python # -*- coding: utf-8 -*- + # Copyright (c) 2019, Bram Verschueren # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/security_group.py b/plugins/modules/security_group.py index a67255a8..01173f7f 100644 --- a/plugins/modules/security_group.py +++ b/plugins/modules/security_group.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # Copyright (c) 2013, Benno Joy diff --git a/plugins/modules/security_group_info.py b/plugins/modules/security_group_info.py index 5075ab9d..d57db1b3 100644 --- a/plugins/modules/security_group_info.py +++ b/plugins/modules/security_group_info.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# coding: utf-8 -*- -# +# -*- coding: utf-8 -*- + # Copyright (c) 2020 by Open Telekom Cloud, operated by T-Systems International GmbH # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/security_group_rule.py b/plugins/modules/security_group_rule.py index 61f43454..574e63e9 100644 --- a/plugins/modules/security_group_rule.py +++ b/plugins/modules/security_group_rule.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # Copyright (c) 2013, Benno Joy diff --git a/plugins/modules/security_group_rule_info.py b/plugins/modules/security_group_rule_info.py index ac52e567..99a120f0 100644 --- a/plugins/modules/security_group_rule_info.py +++ b/plugins/modules/security_group_rule_info.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# coding: utf-8 -*- -# +# -*- coding: utf-8 -*- + # Copyright (c) 2020 by Tino Schreiber (Open Telekom Cloud), operated by T-Systems International GmbH # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/server.py b/plugins/modules/server.py index a37b22a9..c3e79943 100644 --- a/plugins/modules/server.py +++ b/plugins/modules/server.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # Copyright 2019 Red Hat, Inc. # Copyright (c) 2014 Hewlett-Packard Development Company, L.P. diff --git a/plugins/modules/server_action.py b/plugins/modules/server_action.py index eac09c3f..77c3befa 100644 --- a/plugins/modules/server_action.py +++ b/plugins/modules/server_action.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # Copyright (c) 2015, Jesse Keating # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/server_group.py b/plugins/modules/server_group.py index 9f3ab22c..6c24b4e4 100644 --- a/plugins/modules/server_group.py +++ b/plugins/modules/server_group.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2016 Catalyst IT Limited # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/server_info.py b/plugins/modules/server_info.py index a9862b8b..66aa7765 100644 --- a/plugins/modules/server_info.py +++ b/plugins/modules/server_info.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/server_metadata.py b/plugins/modules/server_metadata.py index a1207e3b..ae20e98e 100644 --- a/plugins/modules/server_metadata.py +++ b/plugins/modules/server_metadata.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # Copyright (c) 2016, Mario Santos # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/server_volume.py b/plugins/modules/server_volume.py index 07c4e81a..325fa932 100644 --- a/plugins/modules/server_volume.py +++ b/plugins/modules/server_volume.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/stack.py b/plugins/modules/stack.py index 3591c80c..baff7565 100644 --- a/plugins/modules/stack.py +++ b/plugins/modules/stack.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # (c) 2016, Mathieu Bultel # (c) 2016, Steve Baker diff --git a/plugins/modules/stack_info.py b/plugins/modules/stack_info.py index 3aeba360..794c763d 100644 --- a/plugins/modules/stack_info.py +++ b/plugins/modules/stack_info.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # Copyright (c) 2020, Sagi Shnaidman # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/subnet.py b/plugins/modules/subnet.py index 9ff31291..be506382 100644 --- a/plugins/modules/subnet.py +++ b/plugins/modules/subnet.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # (c) 2013, Benno Joy # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/subnet_pool.py b/plugins/modules/subnet_pool.py index a4f8186c..ac5e1526 100644 --- a/plugins/modules/subnet_pool.py +++ b/plugins/modules/subnet_pool.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# coding: utf-8 -*- -# +# -*- coding: utf-8 -*- + # Copyright (c) 2021 by Uemit Seren # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/subnets_info.py b/plugins/modules/subnets_info.py index 03508505..c5a70ef9 100644 --- a/plugins/modules/subnets_info.py +++ b/plugins/modules/subnets_info.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/volume.py b/plugins/modules/volume.py index 9a7a1ade..67c6f681 100644 --- a/plugins/modules/volume.py +++ b/plugins/modules/volume.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/volume_backup.py b/plugins/modules/volume_backup.py index 77f92666..ec6ae7e6 100644 --- a/plugins/modules/volume_backup.py +++ b/plugins/modules/volume_backup.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# coding: utf-8 -*- -# +# -*- coding: utf-8 -*- + # Copyright (c) 2020 by Open Telekom Cloud, operated by T-Systems International GmbH # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/volume_backup_info.py b/plugins/modules/volume_backup_info.py index 54eb81c0..1fb549fd 100644 --- a/plugins/modules/volume_backup_info.py +++ b/plugins/modules/volume_backup_info.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# coding: utf-8 -*- -# +# -*- coding: utf-8 -*- + # Copyright (c) 2020 by Open Telekom Cloud, operated by T-Systems International GmbH # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/volume_info.py b/plugins/modules/volume_info.py index f4afc6cd..95faafe5 100644 --- a/plugins/modules/volume_info.py +++ b/plugins/modules/volume_info.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # Copyright (c) 2020, Sagi Shnaidman # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/volume_snapshot.py b/plugins/modules/volume_snapshot.py index e6349a35..1f434995 100644 --- a/plugins/modules/volume_snapshot.py +++ b/plugins/modules/volume_snapshot.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# coding: utf-8 -*- +# -*- coding: utf-8 -*- # Copyright (c) 2016, Mario Santos # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/volume_snapshot_info.py b/plugins/modules/volume_snapshot_info.py index e826b9ef..8710dd19 100644 --- a/plugins/modules/volume_snapshot_info.py +++ b/plugins/modules/volume_snapshot_info.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# coding: utf-8 -*- -# +# -*- coding: utf-8 -*- + # Copyright (c) 2020 by Open Telekom Cloud, operated by T-Systems International GmbH # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/scripts/inventory/openstack_inventory.py b/scripts/inventory/openstack_inventory.py index f0b2ff89..ab8760ac 100644 --- a/scripts/inventory/openstack_inventory.py +++ b/scripts/inventory/openstack_inventory.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- # Copyright (c) 2012, Marco Vito Moscaritolo # Copyright (c) 2013, Jesse Keating