From 9da4cabd25663708b360fa7463c620d9d8fa9209 Mon Sep 17 00:00:00 2001 From: Michal Filka Date: Wed, 8 Jun 2016 15:54:15 +0200 Subject: [PATCH] Added documentation for LanItems#ReplaceItemUdev --- src/modules/LanItems.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/LanItems.rb b/src/modules/LanItems.rb index fe75d8baf..835f5a810 100644 --- a/src/modules/LanItems.rb +++ b/src/modules/LanItems.rb @@ -415,6 +415,11 @@ def GetItemUdev(key) # Note that the tuple is identified by key only. However modification flag is # set only if value was changed (in case when replace_key == new_key) # + # It also contain a logic on tuple operators. When the new_key is "NAME" + # then assignment operator (=) is used. Otherwise equality operator (==) is used. + # Thats bcs this function is currently used for touching "NAME", "KERNELS" and + # "ATTR{address}" keys only + # # @param replace_key [string] udev key which identifies tuple to be replaced # @param new_key [string] new key to by used # @param new_val [string] value for new key