Skip to content

Commit

Permalink
new api
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Sep 11, 2024
1 parent 7e06991 commit 820467a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pioreactor/cli/pios.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ def rm(
def _thread_function(unit: str) -> bool:
try:
logger.debug(f"deleting {unit}:{filepath}...")
r = post_into(resolve_to_address(unit), "/unit_api/system/rm", json={"filepath": filepath})
r = post_into(
resolve_to_address(unit), "/unit_api/system/remove_file", json={"filepath": filepath}
)
r.raise_for_status()
return True

Expand Down

0 comments on commit 820467a

Please sign in to comment.