Skip to content

Commit

Permalink
response None
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Otoupal committed Mar 11, 2024
1 parent 1e76f3c commit 7cfb736
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 2 additions & 6 deletions 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.36"
__version__ = "2.3.37"
__author__ = "Jiri Otoupal"
__author_email__ = "jiri-otoupal@ips-database.eu"
__license__ = "MIT"
Expand All @@ -19,9 +19,5 @@

__version_name__ = "Formatted-Merged Giraffe"
__change_log__ = """
* Added new option to context config so user can input custom ssh arguments to 'ssh-custom-arguments' key in context\n
* Listing context will show last usage time\n
* Changed formatting of 'abst context list' and 'abst parallel list'\n
* Merged Config to Context group\n
* Fixed parallel contexts fetching wrong path\n
* Fixed try except for response being None\n
"""
3 changes: 2 additions & 1 deletion abst/bastion_support/oci_bastion.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,14 @@ def parse_response(cls, res):

def load_response(self, res):
response = None
bid = None
try:
self.response = response = Bastion.parse_response(res)
logging.debug(f"Server Response: {response}")
bid = response.get("id", None)
except JSONDecodeError as e:
rich.print(f"Failed to decode json: {res}")
logging.error(f"Exception {e}")
bid = response.get("id", None)

return bid, response

Expand Down

0 comments on commit 7cfb736

Please sign in to comment.