Skip to content

Commit

Permalink
Fixing copyrights in V4 files
Browse files Browse the repository at this point in the history
  • Loading branch information
george-ghawali committed Dec 17, 2024
1 parent 6b266f6 commit ccd2ff7
Show file tree
Hide file tree
Showing 115 changed files with 331 additions and 118 deletions.
8 changes: 6 additions & 2 deletions plugins/module_utils/v4/base_info_module.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Copyright: 2021, Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause )
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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

from copy import deepcopy
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/clusters_mgmt/api_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/clusters_mgmt/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
8 changes: 6 additions & 2 deletions plugins/module_utils/v4/clusters_mgmt/spec/clusters.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Copyright: 2021, Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause )
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
5 changes: 4 additions & 1 deletion plugins/module_utils/v4/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# This file is part of Ansible
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/data_protection/api_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/data_protection/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/flow/api_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/flow/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/iam/api_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/iam/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/network/api_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/network/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/prism/pc_api_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 5 additions & 1 deletion plugins/module_utils/v4/prism/tasks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# This file is part of Ansible
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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

from copy import deepcopy
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/sdk_mock.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 5 additions & 1 deletion plugins/module_utils/v4/spec_generator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# This file is part of Ansible
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
5 changes: 4 additions & 1 deletion plugins/module_utils/v4/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# This file is part of Ansible
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/vmm/api_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/vmm/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
8 changes: 6 additions & 2 deletions plugins/module_utils/v4/vmm/spec/vms.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Copyright: 2021, Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause )
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/volumes/api_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/module_utils/v4/volumes/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
8 changes: 6 additions & 2 deletions plugins/module_utils/v4/volumes/spec/volume_group.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Copyright: 2021, Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause )
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Nutanix
# 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
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ntnx_address_groups_info_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, George Ghawali
# Copyright: (c) 2024, Nutanix
# 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
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ntnx_address_groups_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, George Ghawali
# Copyright: (c) 2024, Nutanix
# 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
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ntnx_authorization_policies_info_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Gevorg Khachatryan
# Copyright: (c) 2024, Nutanix
# 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
Expand Down
9 changes: 5 additions & 4 deletions plugins/modules/ntnx_authorization_policies_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Gevorg Khachatryan
# Copyright: (c) 2024, Nutanix
# 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
Expand Down Expand Up @@ -424,9 +425,9 @@ def delete_authorization_policy(module, result):

result["changed"] = True
if resp is None:
result[
"msg"
] = "Authorization policy with ext_id: {} deleted successfully".format(ext_id)
result["msg"] = (
"Authorization policy with ext_id: {} deleted successfully".format(ext_id)
)
else:
result["response"] = strip_internal_attributes(resp.to_dict())

Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ntnx_categories_info_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Gevorg Khachatryan
# Copyright: (c) 2024, Nutanix
# 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
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ntnx_categories_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Gevorg Khachatryan
# Copyright: (c) 2024, Nutanix
# 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
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ntnx_clusters_info_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Pradeepsingh Bhati
# Copyright: (c) 2024, Nutanix
# 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
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ntnx_clusters_nodes_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, George Ghawali
# Copyright: (c) 2024, Nutanix
# 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
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ntnx_clusters_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Pradeepsingh Bhati
# Copyright: (c) 2024, Nutanix
# 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
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ntnx_directory_services_info_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Gevorg Khachatryan
# Copyright: (c) 2024, Nutanix
# 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
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ntnx_directory_services_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, Gevorg Khachatryan
# Copyright: (c) 2024, Nutanix
# 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
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ntnx_discover_unconfigured_nodes_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2024, George Ghawali
# Copyright: (c) 2024, Nutanix
# 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
Expand Down
Loading

0 comments on commit ccd2ff7

Please sign in to comment.