Fix F841 and remove exclusion

Change-Id: I92802ced580d42781cfd875389daa232aa8a64a5
This commit is contained in:
Monty Taylor
2019-12-09 13:19:58 -05:00
parent 90e68f2e8e
commit 15f7f7fc7b
3 changed files with 1 additions and 3 deletions

View File

@@ -121,7 +121,6 @@ def main():
sdk, cloud = openstack_cloud_from_module(module)
changed = False
state = module.params['state']
resource_name = module.params['resource_name']
resource_type = module.params['resource_type']

View File

@@ -329,7 +329,6 @@ def _validate_subnets(module, cloud, filters=None):
internal_subnet_ids = []
internal_port_ids = []
existing_port_ips = []
existing_port_ids = []
if module.params['external_fixed_ips']:
for iface in module.params['external_fixed_ips']:
subnet = cloud.get_subnet(iface['subnet'])

View File

@@ -51,7 +51,7 @@ commands = {posargs}
# H4 are rules for docstrings. Maybe we should clean them?
# E501,E402,H301,H236,F401,E128 are ignored so we can import the existing
# modules unchanged and then clean them in subsequent patches.
ignore = W503,H4,E501,E402,H301,H236,F401,E128,W504,F841,F403,F405
ignore = W503,H4,E501,E402,H301,H236,F401,E128,W504,F403,F405
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,ansible_collections