Преглед на файлове

Specify the path to the credential file correctly.

Joe Clarke преди 4 години
родител
ревизия
0f4ed6ca8b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      automation/cleu-ansible-n9k/add_vlan.py

+ 1 - 1
automation/cleu-ansible-n9k/add_vlan.py

@@ -267,7 +267,7 @@ def main():
 
     p.poll()
 
-    if os.path.isfile(cred_file):
+    if os.path.isfile(cred_file.name):
         os.remove(cred_file.name)