more pep8
This commit is contained in:
@@ -34,13 +34,14 @@ from nova import db
|
|||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import rpc
|
from nova import rpc
|
||||||
from nova import utils
|
from nova import utils
|
||||||
from nova import datastore # for redis_db flag
|
from nova import datastore # for redis_db flag
|
||||||
from nova.auth import manager # for auth flags
|
from nova.auth import manager # for auth flags
|
||||||
from nova.network import linux_net
|
from nova.network import linux_net
|
||||||
from nova.network import manager # for network flags
|
from nova.network import manager # for network flags
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
|
|
||||||
|
|
||||||
def add_lease(_mac, ip_address, _hostname, _interface):
|
def add_lease(_mac, ip_address, _hostname, _interface):
|
||||||
"""Set the IP that was assigned by the DHCP server."""
|
"""Set the IP that was assigned by the DHCP server."""
|
||||||
if FLAGS.fake_rabbit:
|
if FLAGS.fake_rabbit:
|
||||||
|
|||||||
@@ -56,8 +56,8 @@ class VpnCommands(object):
|
|||||||
vpn = self._vpn_for(project.id)
|
vpn = self._vpn_for(project.id)
|
||||||
if vpn:
|
if vpn:
|
||||||
command = "ping -c1 -w1 %s > /dev/null; echo $?"
|
command = "ping -c1 -w1 %s > /dev/null; echo $?"
|
||||||
out, _err = utils.execute( command % vpn['private_dns_name'],
|
out, _err = utils.execute(command % vpn['private_dns_name'],
|
||||||
check_exit_code=False)
|
check_exit_code=False)
|
||||||
if out.strip() == '0':
|
if out.strip() == '0':
|
||||||
net = 'up'
|
net = 'up'
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -35,4 +35,4 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
if __name__ == '__builtin__':
|
if __name__ == '__builtin__':
|
||||||
utils.default_flagfile()
|
utils.default_flagfile()
|
||||||
application = handler.get_application() # pylint: disable-msg=C0103
|
application = handler.get_application() # pylint: disable-msg=C0103
|
||||||
|
|||||||
Reference in New Issue
Block a user