summaryrefslogtreecommitdiff
path: root/cloudinit/net/eni.py
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2017-03-20 12:18:48 -0600
committerScott Moser <smoser@brickies.net>2017-03-20 14:50:12 -0400
commit9040e78feb7c1bcf3a1dab0ee163efaa0d21612c (patch)
treebce448e131bfd86964ee529a6e4d441909995c25 /cloudinit/net/eni.py
parent5beecdf88b630a397b3722ddb299e9a37ff02737 (diff)
downloadvyos-cloud-init-9040e78feb7c1bcf3a1dab0ee163efaa0d21612c.tar.gz
vyos-cloud-init-9040e78feb7c1bcf3a1dab0ee163efaa0d21612c.zip
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
Diffstat (limited to 'cloudinit/net/eni.py')
-rw-r--r--cloudinit/net/eni.py2
1 files changed, 1 insertions, 1 deletions
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