Skip to content

Commit

Permalink
Several minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed May 6, 2015
1 parent 912c94e commit d609562
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/include/network/lan/udev.rb
Expand Up @@ -63,10 +63,11 @@ def update_udevd
# its Items[i, "udev", "net"], causing jumbled names (bnc#721520)
# The udev trigger will make udev write the persistent names
# (which it already has done, but we have overwritten them now).
SCR.Execute(
ret = SCR.Execute(
path(".target.bash"),
"udevadm trigger --subsystem-match=net --action=add"
) == 0
)
ret == 0
end

# Removes (key,operator,value) tripplet from given udev rule.
Expand Down
2 changes: 1 addition & 1 deletion src/include/network/widgets.rb
Expand Up @@ -559,7 +559,7 @@ def handleDevice(items, selected)
# @param [Array<Fixnum>] itemIds list of indexes into LanItems::Items
# @param [Array<String>] enslavedIfaces list of device names of already enslaved devices
def CreateSlaveItems(itemIds, enslavedIfaces)
raise ArgumentError if itemIds.nil?
raise ArgumentError, "no slave device defined" if itemIds.nil?

items = []

Expand Down

0 comments on commit d609562

Please sign in to comment.