Skip to content

Commit

Permalink
Fix print
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Otoupal committed Nov 21, 2023
1 parent e8782aa commit 2cc460d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion abst/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"CLI Command making OCI Bastion and kubernetes usage simple and fast"
)

__version__ = "2.3.8"
__version__ = "2.3.9"
__author__ = "Jiri Otoupal"
__author_email__ = "jiri-otoupal@ips-database.eu"
__license__ = "MIT"
Expand Down
3 changes: 2 additions & 1 deletion abst/utils/misc_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def copy_file_alt_kubectl(data: list, dest_path: str, local_path: Path, pod_name
f" kubectl exec -i {pod_name_precise} -n {data[0]} -- tee \"{dest_path}\" > /dev/null")
logging.info(f"Executing {kubectl_alt_copy_cmd}")
exit_code = subprocess.call(kubectl_alt_copy_cmd, shell=True)
rich.print(f" [green]{local_path.name} ({local_path.stat().st_size / 1000} kB) successfully copied![/green]")
rich.print(
f" [green]{local_path if type(local_path) == str else local_path.name} ({local_path.stat().st_size / 1000} kB) successfully copied![/green]")
if exit_code != 0 and tries < 0:
rich.print("[red]Failed to copy.[/red]")
exit(1)
Expand Down

0 comments on commit 2cc460d

Please sign in to comment.