From df0bb5821ea57297e5b9fa6294f6fd5473c0864d Mon Sep 17 00:00:00 2001 From: Jiri Otoupal Date: Thu, 2 Nov 2023 15:20:13 +0100 Subject: [PATCH] fix paste --- abst/__version__.py | 2 +- abst/cli_commands/context/commands.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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")