Merge "Hyper-V: Remove useless use of "else" clause on for loop"
This commit is contained in:
commit
6bb791dfc8
@ -66,7 +66,6 @@ disable=
|
|||||||
unused-argument,
|
unused-argument,
|
||||||
unused-import,
|
unused-import,
|
||||||
unused-variable,
|
unused-variable,
|
||||||
useless-else-on-loop,
|
|
||||||
# "C" Coding convention violations
|
# "C" Coding convention violations
|
||||||
bad-continuation,
|
bad-continuation,
|
||||||
invalid-name,
|
invalid-name,
|
||||||
|
@ -51,7 +51,4 @@ class HypervMechanismDriver(mech_agent.SimpleAgentMechanismDriverBase):
|
|||||||
for pattern in mappings:
|
for pattern in mappings:
|
||||||
if re.match(pattern, segment[api.PHYSICAL_NETWORK]):
|
if re.match(pattern, segment[api.PHYSICAL_NETWORK]):
|
||||||
return True
|
return True
|
||||||
else:
|
|
||||||
return False
|
|
||||||
else:
|
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user