Skip to content

Commit

Permalink
check_create must return valid dict or None
Browse files Browse the repository at this point in the history
Change-Id: I7532bf755cda497ac2b5f7a0ec4b00df01096c2d
Closes-Bug: 1482132
(cherry picked from commit 2ca0c1e)
  • Loading branch information
Sachin Bansal committed Aug 12, 2015
1 parent a283b6f commit b7c39f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/schema-transformer/to_bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,7 @@ def check_create(self):
if ip_addr is None:
self.log_error("No ip address found for interface "
+ interface_name)
return False
return None
vmi_info = {'vmi': interface, 'address': ip_addr}
vm_info[interface.service_interface_type] = vmi_info

Expand Down

0 comments on commit b7c39f1

Please sign in to comment.