Skip to content

Commit 5654f16

Browse files
committed
Enhance AFS storage data handling to include storage account name in NFS address matching
1 parent e6ec088 commit 5654f16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/module_utils/filesystem_collector.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ def _parse_filesystem_data(
110110

111111
if not matched:
112112
for nfs_share in afs_storage_data:
113+
storage_account_name = nfs_share.get("Pool", "")
113114
share_address = nfs_share.get("NFSAddress", "")
114-
if ":" in share_address and share_address.split(":")[0] == nfs_address:
115+
if (
116+
":" in share_address and share_address.split(":")[0] == nfs_address
117+
) or storage_account_name in nfs_address:
115118
filesystem_entry["max_mbps"] = nfs_share.get("ThroughputMibps", 0)
116119
filesystem_entry["max_iops"] = nfs_share.get("IOPS", 0)
117120
filesystem_entry["nfs_type"] = "AFS"

0 commit comments

Comments
 (0)