From 9c3023c5c940cc5e9c6527034ffb19bb68fd3735 Mon Sep 17 00:00:00 2001 From: Jiri Otoupal Date: Mon, 13 Nov 2023 17:08:14 +0100 Subject: [PATCH] fix share --- abst/__version__.py | 2 +- abst/cli_commands/context/commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/abst/__version__.py b/abst/__version__.py index 3029731..d86cca4 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.3.2" +__version__ = "2.3.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 e229d27..705a62b 100644 --- a/abst/cli_commands/context/commands.py +++ b/abst/cli_commands/context/commands.py @@ -47,7 +47,7 @@ def share(name, debug=False): if data is None: return for key in share_excluded_keys: - data.pop(key) + data.pop(key, None) data["default-name"] = "!YOUR NAME!" rich.print_json(data=data) logging.debug("Data transmitted into clipboard")