Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Otoupal committed Mar 14, 2024
1 parent ccc587a commit 7f7f300
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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.3.47"
__version__ = "2.3.45"
__author__ = "Jiri Otoupal"
__author_email__ = "jiri-otoupal@ips-database.eu"
__license__ = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion abst/cli_commands/ssh_cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def ssh_lin(port, name, debug):
lb = LocalBroadcast(broadcast_shm_name)
data = lb.retrieve_json()
# Refresh memory because of a system
lb.__write_json(data)
lb._write_json(data)

if len(data.keys()) == 0:
rich.print("[yellow]No connected sessions[/yellow]")
Expand Down
6 changes: 3 additions & 3 deletions abst/sharing/local_broadcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def store_json(self, data: dict) -> int:

data_copy = always_merger.merge(data, data_before)

serialized_data = self.__write_json(data_copy)
serialized_data = self._write_json(data_copy)
return len(serialized_data)

def __write_json(self, data: dict):
def _write_json(self, data: dict):
serialized_data = json.dumps(data).encode('utf-8')
if len(serialized_data) > self._size:
raise ValueError("Data exceeds allocated shared memory size.")
Expand All @@ -71,7 +71,7 @@ def __write_json(self, data: dict):
def delete_context(self, context: str):
data_before = self.retrieve_json()
data_before.pop(context, None)
self.__write_json(data_before)
self._write_json(data_before)

def retrieve_json(self) -> dict:
"""
Expand Down

0 comments on commit 7f7f300

Please sign in to comment.