Skip to content

Commit bbb0c5c

Browse files
committed
Refactor AFS storage account extraction to simplify regex and improve matching for Azure file endpoints.
1 parent 1b82e2b commit bbb0c5c

File tree

1 file changed

+1
-3
lines changed
  • src/roles/configuration_checks/tasks

1 file changed

+1
-3
lines changed

src/roles/configuration_checks/tasks/disks.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,8 @@
129129
ansible.builtin.set_fact:
130130
afs_storage_accounts: "{{ mount_info.stdout_lines
131131
| map('split', ' ')
132-
| map('list')
133-
| selectattr('1', 'defined')
134132
| map(attribute='1')
135-
| select('match', '\\.(privatelink\\.)?file\\.core\\.windows\\.net:/')
133+
| select('search', '\\.file\\.core\\.windows\\.net:/')
136134
| map('regex_replace', '^.*:/([^/]+)/.*', '\\1')
137135
| list
138136
| unique }}"

0 commit comments

Comments
 (0)