Skip to content

Commit

Permalink
defect fix ECS02A-152
Browse files Browse the repository at this point in the history
  • Loading branch information
Saksham-Nautiyal committed Feb 14, 2025
1 parent 3d43450 commit f196043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/nfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,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 +766,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 f196043

Please sign in to comment.