Explorar o código

Specify the path to the credential file correctly.

Joe Clarke %!s(int64=4) %!d(string=hai) anos
pai
achega
0f4ed6ca8b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)