Skip to content

Commit

Permalink
Defect fix ECS02A-152 (#157)
Browse files Browse the repository at this point in the history
* defect fix ECS02A-152

* added copyright and author
  • Loading branch information
Saksham-Nautiyal authored Feb 18, 2025
1 parent 983ac96 commit 79c8483
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/modules/nfs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/python
# Copyright: (c) 2020-2024, Dell Technologies
# Copyright: (c) 2020-2025, Dell Technologies

# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

Expand Down Expand Up @@ -27,6 +27,7 @@
- Bhavneet Sharma(@Bhavneet-Sharma) <[email protected]>
- Trisha Datta(@trisha-dell) <[email protected]>
- Kritika Bhateja(@Kritika-Bhateja-03) <ansible.team.dell.com>)
- Saksham Nautiyal (@Saksham-Nautiyal) <[email protected]>
options:
access_zone:
Expand Down Expand Up @@ -739,7 +740,7 @@ def _check_read_only_clients(self, nfs_export, playbook_client_dict, current_cli
return mod_flag, nfs_export

if client_state is None:
if playbook_client_dict['read_only_clients'] != current_client_dict['read_only_clients']:
if sorted(playbook_client_dict['read_only_clients']) != sorted(current_client_dict['read_only_clients']):
current_client_dict['read_only_clients'] = playbook_client_dict['read_only_clients']
mod_flag = True
for client in playbook_client_dict['read_only_clients']:
Expand All @@ -766,7 +767,7 @@ def _check_root_clients(self, nfs_export, playbook_client_dict, current_client_d
return mod_flag, nfs_export

if client_state is None:
if playbook_client_dict['root_clients'] != current_client_dict['root_clients']:
if sorted(playbook_client_dict['root_clients']) != sorted(current_client_dict['root_clients']):
current_client_dict['root_clients'] = playbook_client_dict['root_clients']
mod_flag = True
for client in playbook_client_dict['root_clients']:
Expand Down

0 comments on commit 79c8483

Please sign in to comment.