Skip to content

Commit 8fa7b9d

Browse files
committed
Fix NFS address matching logic to use source variable for storage account name comparison
1 parent f2d5706 commit 8fa7b9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/module_utils/filesystem_collector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _parse_filesystem_data(
116116
":" in share_address and share_address.split(":")[0] == nfs_address
117117
)
118118
fqdn_match = (
119-
storage_account_name and storage_account_name in nfs_address
119+
storage_account_name and storage_account_name in nfs_source
120120
)
121121
ip_to_account_match = False
122122
try:
@@ -496,7 +496,7 @@ def gather_all_filesystem_info(
496496
and share_address.split(":")[0] == nfs_address
497497
)
498498
fqdn_match = (
499-
storage_account_name and storage_account_name in nfs_address
499+
storage_account_name and storage_account_name in source
500500
)
501501
ip_to_account_match = False
502502
try:

0 commit comments

Comments
 (0)