Remove unreachable code (#26820)

Break statement is unreachable in current for loop.
Safely remove break statement.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-07-15 00:22:30 +05:30 committed by Sloane Hertel
parent b6fdc904a9
commit 6bc15d11b9

View file

@ -216,7 +216,6 @@ class VMwareResourcePool(object):
if name in [c.name, c._GetMoId()]: if name in [c.name, c._GetMoId()]:
if return_all is False: if return_all is False:
return c return c
break
else: else:
obj.append(c) obj.append(c)