From 9040e78feb7c1bcf3a1dab0ee163efaa0d21612c Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Mon, 20 Mar 2017 12:18:48 -0600 Subject: net: Fix incorrect call to isfile Previous commit introduced a regression by calling os.path.is_file, a non-existent function. This changes that call to use os.path.isfile. LP: #1674317 --- cloudinit/net/eni.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit/net') diff --git a/cloudinit/net/eni.py b/cloudinit/net/eni.py index 9d39a2b0..f471e05f 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 -- cgit v1.2.3