Skip to content

Commit

Permalink
added timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Otoupal committed Apr 23, 2024
1 parent b6f5de0 commit 3c4f383
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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.54"
__version__ = "2.3.55"
__author__ = "Jiri Otoupal"
__author_email__ = "jiri-otoupal@ips-database.eu"
__license__ = "MIT"
Expand Down
2 changes: 2 additions & 0 deletions abst/bastion_support/oci_bastion.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ def create_forward_loop(self, shell: bool = False, force: bool = False, tries: i
rich.print(f"Failed to Create Bastion {self.get_print_name()}"
f" with response '{response}'")
if tries < 3:
rich.print("Will try again in 1 second...")
sleep(1)
return self.create_forward_loop(shell, force, tries + 1)
else:
rich.print(f"Failed to create bastion {tries=}, please try to restart abst")
Expand Down

0 comments on commit 3c4f383

Please sign in to comment.