Skip to content

Commit 2a3f83c

Browse files
committed
Fix one more bug with windows set api key.
1 parent 383b11d commit 2a3f83c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalyr_agent/config_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def set_api_key(config, config_file_path, new_api_key):
101101
original_file = None
102102

103103
if 'win32' == sys.platform:
104-
os.unlink(original_file)
104+
os.unlink(config_file_path)
105105

106106
# Determine how to make the file have the same permissions as the original config file. For now, it
107107
# does not matter since if this command is only run as part of the install process, the file should

0 commit comments

Comments
 (0)