summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorCosmin Luță <cosmin.luta@avira.com>2012-03-04 16:42:27 +0200
committerCosmin Luță <cosmin.luta@avira.com>2012-03-04 16:42:27 +0200
commit162af10bc6633d47ec8f3ece102f0bc915a0e33a (patch)
tree58731b8091e23ce925d5d4b1d99ce3866dd074e4 /cloudinit
parent272bea67f8cd0fee5233d21c8f380a6d2f6b6bde (diff)
downloadvyos-cloud-init-162af10bc6633d47ec8f3ece102f0bc915a0e33a.tar.gz
vyos-cloud-init-162af10bc6633d47ec8f3ece102f0bc915a0e33a.zip
Importing only inet_ntoa from the socket module
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/DataSourceCS.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/DataSourceCS.py b/cloudinit/DataSourceCS.py
index 1c0a984c..4d199ad2 100644
--- a/cloudinit/DataSourceCS.py
+++ b/cloudinit/DataSourceCS.py
@@ -24,7 +24,7 @@ import cloudinit.DataSource as DataSource
from cloudinit import seeddir as base_seeddir
from cloudinit import log
import cloudinit.util as util
-import socket
+from socket import inet_ntoa
import urllib2
import time
import boto.utils as boto_utils
@@ -50,7 +50,7 @@ class DataSourceCS(DataSource.DataSource):
# found the default route, get the gateway
gw = int(items[2], 16)
log.debug("found default route, gateway %s" % items[2])
- return socket.inet_ntoa(pack("<L", gw))
+ return inet_ntoa(pack("<L", gw))
f.close()
except:
if f is not None: