Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Medhini Reddy Maryada <[email protected]>
  • Loading branch information
Sai Medhini Reddy Maryada authored and Sai Medhini Reddy Maryada committed Mar 2, 2024
1 parent a8a6b52 commit 2933bc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ def generate(session: Any) -> None:
before_path = os.path.join(current_dir, "before_generate_client")
# Create snapshots of the opensearchpy directory before and after running the generate session
if os.path.exists(before_path):
# If it exists, delete the directory
os.rmdir(before_path)


shutil.copytree(os.path.join(current_dir, "opensearchpy/client"), before_path)
session.run("python", "utils/generate_api.py")
session.run("nox", "-s", "format")
Expand Down Expand Up @@ -192,6 +192,7 @@ def generate(session: Any) -> None:
session.run("python", "utils/changelog_updater.py")

else:

print("No changes detected in the opensearchpy directory")

# Clean up
Expand Down

0 comments on commit 2933bc6

Please sign in to comment.