Skip to content

Commit 829b439

Browse files
author
cclauss
authored
putty_sessions(conffilename)
Without this change conffilename is an undefined name in the putty_sessions() function.
1 parent 2f5c407 commit 829b439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

daily_checks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def print_docs(): # Function to print the daily checks automatically
3333
subprocess.Popen(["C:\\Program Files (x86)\Microsoft Office\Office14\winword.exe", "P:\\\\Documentation\\Daily Docs\\Back office Daily Checks.doc", "/mFilePrintDefault", "/mFileExit"]).communicate()
3434

3535

36-
def putty_sessions(): # Function to load the putty sessions I need
36+
def putty_sessions(conffilename): # Function to load the putty sessions I need
3737
for server in open(conffilename): # Open the file server_list.txt, loop through reading each line - 1.1 -Changed - 1.3 Changed name to use variable conffilename
3838
subprocess.Popen(('putty -load '+server)) # Open the PuTTY sessions - 1.1
3939

@@ -63,7 +63,7 @@ def main():
6363
filename, "ran at", strftime("%Y-%m-%d %H:%M:%S"), "on",platform.node(), "run from",os.getcwd())
6464

6565
print_docs() # Call the print_docs function
66-
putty_sessions() # Call the putty_session function
66+
putty_sessions(conffilename) # Call the putty_session function
6767
rdp_sessions() # Call the rdp_sessions function
6868
euroclear_docs() # Call the euroclear_docs function
6969

0 commit comments

Comments
 (0)