Skip to content

Commit d362355

Browse files
author
Isaac Hill
committed
Revert to old method of commiting to see if that was issue
1 parent 76322ad commit d362355

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hotfix_checker.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CHECK(Enum):
2323
FALSE = 2
2424

2525

26-
def save_to_file(path, data):
26+
def save_to_file(hostname, path, data):
2727
""" Save data to a file in the workspace directory.
2828
2929
Args:
@@ -37,7 +37,7 @@ def save_to_file(path, data):
3737
if not os.path.exists(WORKSPACE_DIR + path):
3838
os.makedirs(WORKSPACE_DIR + path)
3939

40-
with open(os.path.join(WORKSPACE_DIR + path), "w") as file:
40+
with open(os.path.join(WORKSPACE_DIR + path + hostname + '.txt'), "w") as file:
4141
file.write(data)
4242

4343

@@ -87,8 +87,8 @@ def check_for_uncommitted_changes(hostname):
8787

8888
if ssh_process['success']:
8989
# log the output to a workspace file for viewing later
90-
save_to_file(os.path.join("/git_status/" +
91-
hostname + '.txt'), ssh_process['output'])
90+
91+
save_to_file(hostname, "/git_status/", ssh_process['output'])
9292

9393
if ssh_process['output'].strip() != "":
9494
return CHECK.TRUE

0 commit comments

Comments
 (0)