Переглянути джерело

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)