Fix some pep8 errors
- F632 - E305 - E117 Change-Id: Id08a49c401a11a6f43ff132e798bdb1088ddb75d
This commit is contained in:
parent
701c146bd7
commit
fa6a29379c
@ -280,7 +280,7 @@ class HeatContainerLauncher(HeatBaseLauncher):
|
|||||||
# 137 means the container was killed by 'kill -9' which happens
|
# 137 means the container was killed by 'kill -9' which happens
|
||||||
# then we're done creating the Heat stack, so we consider it
|
# then we're done creating the Heat stack, so we consider it
|
||||||
# as successful.
|
# as successful.
|
||||||
if e.returncode is not 137:
|
if e.returncode != 137:
|
||||||
raise Exception('heat_all container did not run as expected.')
|
raise Exception('heat_all container did not run as expected.')
|
||||||
|
|
||||||
def heat_db_sync(self):
|
def heat_db_sync(self):
|
||||||
|
@ -263,14 +263,14 @@ class TestValidateOvercloudNetenv(fakes.TestValidateOvercloudNetenv):
|
|||||||
def test_command(self, mock_nic_validate):
|
def test_command(self, mock_nic_validate):
|
||||||
"""Testing the command with a minimal file that will fail"""
|
"""Testing the command with a minimal file that will fail"""
|
||||||
with tempfile.NamedTemporaryFile('wt') as net_file:
|
with tempfile.NamedTemporaryFile('wt') as net_file:
|
||||||
net_file.write(EMPTY_NETENV)
|
net_file.write(EMPTY_NETENV)
|
||||||
net_file.flush()
|
net_file.flush()
|
||||||
|
|
||||||
arglist = ['--file', net_file.name]
|
arglist = ['--file', net_file.name]
|
||||||
verifylist = [
|
verifylist = [
|
||||||
('netenv', net_file.name),
|
('netenv', net_file.name),
|
||||||
]
|
]
|
||||||
|
|
||||||
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
||||||
# Validating a minimal file shouldn't raise errors.
|
# Validating a minimal file shouldn't raise errors.
|
||||||
self.cmd.take_action(parsed_args)
|
self.cmd.take_action(parsed_args)
|
||||||
|
@ -112,6 +112,7 @@ def _load_subnets_config_groups():
|
|||||||
else:
|
else:
|
||||||
CONF.register_opts(config.get_remote_subnet_opts(), group=g)
|
CONF.register_opts(config.get_remote_subnet_opts(), group=g)
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__ + ".undercloud_config")
|
LOG = logging.getLogger(__name__ + ".undercloud_config")
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ from tripleoclient import utils
|
|||||||
class FailedValidation(Exception):
|
class FailedValidation(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
# We need 8 GB, leave a little room for variation in what 8 GB means on
|
# We need 8 GB, leave a little room for variation in what 8 GB means on
|
||||||
|
Loading…
Reference in New Issue
Block a user