Skip to content

Commit 1b82e2b

Browse files
committed
Refine regex for Azure file endpoint matching to support private link and improve extraction of file share names.
1 parent b349d4b commit 1b82e2b

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

src/roles/configuration_checks/tasks/disks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@
132132
| map('list')
133133
| selectattr('1', 'defined')
134134
| map(attribute='1')
135-
| select('match', '^[^.]+\\.file\\.core\\.windows\\.net:')
136-
| map('regex_replace', '^([^.]+)\\.file\\.core\\.windows\\.net:.*', '\\1')
135+
| select('match', '\\.(privatelink\\.)?file\\.core\\.windows\\.net:/')
136+
| map('regex_replace', '^.*:/([^/]+)/.*', '\\1')
137137
| list
138138
| unique }}"
139139

0 commit comments

Comments
 (0)