Skip to content

Commit

Permalink
fix paste
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Otoupal committed Nov 2, 2023
1 parent 2cc9eab commit df0bb58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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.2.2"
__version__ = "2.2.3"
__author__ = "Jiri Otoupal"
__author_email__ = "jiri-otoupal@ips-database.eu"
__license__ = "MIT"
Expand Down
3 changes: 2 additions & 1 deletion abst/cli_commands/context/commands.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import logging
from pathlib import Path

Expand Down Expand Up @@ -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")

0 comments on commit df0bb58

Please sign in to comment.