Skip to content

Commit

Permalink
Add missing return statement
Browse files Browse the repository at this point in the history
The return statement was missed when vrouter_api.py was modified to use REST interface instead of Thrift.

Closes-Bug: #1664819
(cherry picked from commit 392d0be)

Change-Id: Ie588903284821a45246db20b583c37ae43c90b54
  • Loading branch information
ashoksr committed Feb 22, 2017
1 parent 46b958d commit ea17745
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def add_port(self, vm_uuid_str, vif_uuid_str, interface_name, mac_address,
self._ports[vif_uuid_str] = cmd

self._resynchronize()
if (ret_code != 0):
return False
return True

finally:
if self._semaphore:
Expand Down

0 comments on commit ea17745

Please sign in to comment.