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: I4c1adb4eafc09eb410f3713e2957c27553b015f9
  • Loading branch information
ashoksr committed Feb 22, 2017
1 parent 82f8603 commit b5c6065
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -90,6 +90,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 b5c6065

Please sign in to comment.