Skip to content

Commit b3dbf11

Browse files
authored
fix apiview (#36369)
1 parent c1c6f3e commit b3dbf11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/azure-sdk-tools/packaging_tools/sdk_package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def main(generate_input, generate_output):
5252
"/simple/"], cwd=package_path, timeout=300)
5353
check_call(["apistubgen", "--pkg-path", "."], cwd=package_path, timeout=600)
5454
for file in os.listdir(package_path):
55-
if "_python.json" in file:
55+
if "_python.json" in file and package_name in file:
5656
package["apiViewArtifact"] = str(Path(package_path, file))
5757
except Exception as e:
5858
_LOGGER.error(f"Fail to generate ApiView token file for {package_name}: {e}")

0 commit comments

Comments
 (0)