Update hacking version

Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I773d866923bb80ae9fa770e846937e80a6cbd348
This commit is contained in:
confi-surya 2018-12-31 16:52:50 +00:00
parent 3a44e5bed2
commit cc12272355
6 changed files with 11 additions and 11 deletions

View File

@ -4,7 +4,7 @@
openstackdocstheme>=1.18.1 # Apache-2.0
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
hacking>=1.1.0,<1.2.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
docutils>=0.11 # OSI-Approved Open Source, Public Domain

View File

@ -313,8 +313,8 @@ class GetDpdkSocketMemoryAction(base.TripleOAction):
not nics_info['mtu'] in distinct_mtu_per_node):
distinct_mtu_per_node.append(nics_info['mtu'])
roundup_mtu = self.roundup_mtu_bytes(nics_info['mtu'])
socket_memory += (((roundup_mtu + overhead)
* packet_size_in_buffer) /
socket_memory += (((roundup_mtu + overhead) *
packet_size_in_buffer) /
(1024 * 1024))
# For Non DPDK numa node

View File

@ -297,8 +297,8 @@ def container_images_prepare(template_file=DEFAULT_TEMPLATE_FILE,
imagename = entry.get('imagename', '')
append_tag = ''
if modify_role and (
(not modify_only_with_labels)
or imagename in images_with_labels):
(not modify_only_with_labels) or
imagename in images_with_labels):
entry['modify_role'] = modify_role
if modify_append_tag:
entry['modify_append_tag'] = modify_append_tag

View File

@ -27,7 +27,7 @@ if 'nova' not in sys.modules:
else:
raise RuntimeError('nova module already found in sys.modules. The '
'fake_nova injection should be removed.')
from tripleo_common.filters import capabilities_filter
from tripleo_common.filters import capabilities_filter # noqa
class TestCapabilitiesFilter(base.TestCase):

View File

@ -318,8 +318,8 @@ class Config(object):
nested_depth=constants.NESTED_DEPTH,
filters=dict(physical_resource_id=parent_stack))
if not resources:
message = "The deployment resource grandparent name could" \
"not be determined."
message = "The deployment resource grandparent name" \
"could not be determined."
raise ValueError(message)
deployment_name = resources[0].resource_name
config_dict['deployment_name'] = deployment_name

View File

@ -83,9 +83,9 @@ def download_container(swiftclient, container, dest,
# write file if `overwrite_only_newer` is not set,
# or if file does not exist at destination,
# or if we found a newer file at source
if (not overwrite_only_newer
or not already_exists
or (overwrite_only_newer and is_newer)):
if (not overwrite_only_newer or
not already_exists or
(overwrite_only_newer and is_newer)):
if not os.path.exists(dirname):
os.makedirs(dirname)