Skip to content

Commit 77c9df5

Browse files
committed
do the thing
1 parent 6d745e6 commit 77c9df5

File tree

4 files changed

+4
-26
lines changed

4 files changed

+4
-26
lines changed

build.sh

100644100755
File mode changed.

helpers/connection.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import sys
44

55
from helpers.path import expand_path
6-
from helpers.tracking import track_access
76

87

98
def construct_ssh_command(selected_record):
@@ -29,9 +28,6 @@ def clear_console():
2928

3029

3130
def run_ssh_command(selected_record):
32-
# Track the access
33-
track_access(selected_record)
34-
3531
# Construct the SSH command with
3632
ssh_command = construct_ssh_command(selected_record)
3733

helpers/host_modification.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ def add_host(data):
3636

3737
data.append(new_host)
3838

39+
file_data = json.loads(open(os.environ['PATH_TO_HOSTS'], 'r').read())
40+
file_data['hosts'] = data
41+
3942
with open(os.environ['PATH_TO_HOSTS'], 'w') as f:
40-
json.dump({'hosts': data}, f, indent=4)
43+
json.dump(data, f, indent=4)
4144

4245
print("New host added successfully!")
4346

helpers/tracking.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)