diff --git a/abst/__version__.py b/abst/__version__.py index 37e7453..27c88a7 100644 --- a/abst/__version__.py +++ b/abst/__version__.py @@ -10,7 +10,7 @@ "CLI Command making OCI Bastion and kubernetes usage simple and fast" ) -__version__ = "2.2.2" +__version__ = "2.2.3" __author__ = "Jiri Otoupal" __author_email__ = "jiri-otoupal@ips-database.eu" __license__ = "MIT" diff --git a/abst/cli_commands/context/commands.py b/abst/cli_commands/context/commands.py index 3fb00c0..e229d27 100644 --- a/abst/cli_commands/context/commands.py +++ b/abst/cli_commands/context/commands.py @@ -1,3 +1,4 @@ +import json import logging from pathlib import Path @@ -63,5 +64,5 @@ def paste(name, debug=False): path = get_context_path(name) if data is None: return - Bastion.write_creds_json(data, path) + Bastion.write_creds_json(json.loads(data.replace("'", "\"")), path) rich.print(f"Wrote config into ~/.abst/contexts/{name}.json")