Skip to content

Commit 1a017ff

Browse files
authored
[script] Update python-multiapi-configuration-helper (Azure#24159)
* Update python-multiapi-configuration-helper.py * Update python-multiapi-configuration-helper.py
1 parent f504dec commit 1a017ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/multiapi-configuration-helper/python-multiapi-configuration-helper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ def get_tag_and_file(self, content: List[str], start_idx: int) -> int:
102102
if file_name:
103103
files.append(file_name)
104104
for tag_name in tags_name:
105-
self.tag_files[tag_name] = files
105+
if not self.tag_files.get(tag_name) and files:
106+
self.tag_files[tag_name] = files
106107
return end_idx + 1
107108

108109
def get_all_tag_files(self):
@@ -160,7 +161,9 @@ def get_missing_files(self):
160161
if self.tag not in self.tag_files:
161162
raise Exception(f'Do not find \"{self.tag}\" in \"{self.service_name}/readme.md\"'
162163
f'({str(self.tag_files.keys())})')
164+
print(f'find the following tiles in {self.tag}:')
163165
for file_name in self.tag_files[self.tag]:
166+
print(file_name)
164167
if file_name not in self.configured_files:
165168
missing_files.append(' - ' + file_name)
166169

0 commit comments

Comments
 (0)