Skip to content

Commit 8ddf10d

Browse files
committed
Refactor NFS IP address handling to clarify storage account extraction logic
1 parent 26a2b6f commit 8ddf10d

File tree

1 file changed

+0
-2
lines changed
  • src/roles/configuration_checks/tasks

1 file changed

+0
-2
lines changed

src/roles/configuration_checks/tasks/disks.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,11 @@
137137
{% for ip in nfs_ip_addresses %}
138138
response=$(curl -s --connect-timeout 5 --max-time 10 http://{{ ip }}/ 2>&1 || true)
139139
if echo "$response" | grep -q "windows.net"; then
140-
# This is AFS - extract storage account name from the response
141140
storage_account=$(echo "$response" | grep -oP '[a-z0-9]+\.file\.core\.windows\.net' | head -1 | cut -d'.' -f1)
142141
if [ -n "$storage_account" ]; then
143142
echo "AFS:{{ ip }}:$storage_account"
144143
fi
145144
else
146-
# This is ANF
147145
echo "ANF:{{ ip }}"
148146
fi
149147
{% endfor %}

0 commit comments

Comments
 (0)