← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~powersj/cloud-init:1674317_fix_is_file into cloud-init:master

 

Joshua Powers has proposed merging ~powersj/cloud-init:1674317_fix_is_file into cloud-init:master.

Commit message:
net: Fix incorrect call to isfile

Previous commit 5beecdf introduced a regression by calling
os.path.is_file, a non-existent function. This changes that call to use
os.path.isfile.

LP: #1674317

Requested reviews:
  cloud init development team (cloud-init-dev)

For more details, see:
https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/320414
-- 
Your team cloud init development team is requested to review the proposed merge of ~powersj/cloud-init:1674317_fix_is_file into cloud-init:master.
diff --git a/cloudinit/net/eni.py b/cloudinit/net/eni.py
index 9d39a2b..f471e05 100644
--- a/cloudinit/net/eni.py
+++ b/cloudinit/net/eni.py
@@ -508,7 +508,7 @@ def available(target=None):
         if not util.which(p, search=search, target=target):
             return False
     eni = util.target_path(target, 'etc/network/interfaces')
-    if not os.path.is_file(eni):
+    if not os.path.isfile(eni):
         return False
 
     return True

Follow ups