Skip to content

Commit

Permalink
OpenNebula#3058 del_bridge_port returns only boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 committed Mar 22, 2019
1 parent 78477c2 commit dab395c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vmm_mad/remotes/lib/lxd/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def vnc(signal)

# Deletes the switch port. Unlike libvirt, LXD doesn't handle this.
def del_bridge_port(nic)
return 'not ovswitch' unless nic['VN_MAD'] == 'ovswitch'
return true unless nic['VN_MAD'] == 'ovswitch'

cmd = 'sudo ovs-vsctl --if-exists del-port '\
"#{nic['BRIDGE']} #{nic['TARGET']}"
Expand All @@ -402,7 +402,7 @@ def del_bridge_port(nic)
return true if rc.zero?

OpenNebula.log_error "#{__method__}: #{e}"
nil
false
end

# Waits or no for response depending on wait value
Expand Down

0 comments on commit dab395c

Please sign in to comment.