Robert Church
ea1d81735d
Debian: Fix Ruby csv.to_a.map parsing behavior
The output of "pvs -o pv_name,vg_name,lv_name --separator ','" is the same under CentOS and Debian. This output is fed to the csv.to_a.map function which produces a slightly different hash. Under Centos ruby (2.0.0): {:_pv=>" /dev/sda5", :vg=>"cgts-vg", :lv=>"log-lv"} Under Debian ruby (2.7.4): {:pv=>" /dev/sda7", :vg=>"cgts-vg", :lv=>"log-lv"} The '_pv' hash key is invalid under Debian and results in: undefined method `strip' for nil:NilClass (NoMethodError) This patch corrects the variable reference Change-Id: I70033adfff4b551770e9b5026ed93c98949f3689 Story: 2009964 Task: 45101 Signed-off-by: Robert Church <robert.church@windriver.com>
integ
StarlingX Integration
Description
Languages
Shell
33.1%
JavaScript
24.1%
Perl
14.3%
Python
10.3%
Makefile
6.6%
Other
11.5%