Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defect fix ECS02A-152 #157

Merged
merged 3 commits into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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