mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
feature #863: don't use exec_and_log for commands that may fail
This commit is contained in:
1 parent
908d5e137c
commit
d7853c4a00
1 file changed
+2
-1
@@ -64,7 +64,8 @@ class OpenNebulaHM < OpenNebulaNetwork
|
||||
|
||||
def device_exists?(dev, vlan=nil)
|
||||
dev = "#{dev}.#{vlan}" if vlan
|
||||
OpenNebula.exec_and_log("#{COMMANDS[:ip]} link show #{dev}")
|
||||
`#{COMMANDS[:ip]} link show #{dev}`
|
||||
$?.exitstatus == 0
|
||||
end
|
||||
|
||||
def create_dev_vlan(dev, vlan)
|
||||
|
||||
Reference in new issue
Block a user