diff options
author | Cosmin Luță <cosmin.luta@avira.com> | 2012-03-04 16:42:27 +0200 |
---|---|---|
committer | Cosmin Luță <cosmin.luta@avira.com> | 2012-03-04 16:42:27 +0200 |
commit | 162af10bc6633d47ec8f3ece102f0bc915a0e33a (patch) | |
tree | 58731b8091e23ce925d5d4b1d99ce3866dd074e4 /cloudinit | |
parent | 272bea67f8cd0fee5233d21c8f380a6d2f6b6bde (diff) | |
download | vyos-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.py | 4 |
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: |