14 Mar
2023
14 Mar
'23
15:30
https://bugzilla.suse.com/show_bug.cgi?id=1209162 https://bugzilla.suse.com/show_bug.cgi?id=1209162#c2 --- Comment #2 from Stefan Hundhammer <shundhammer@suse.com> --- https://github.com/yast/yast-s390/blob/master/src/lib/y2s390/dasds_reader.rb...
def use_diag?(dasd) diag_file = "/sys/#{dasd.sysfs_id}/device/use_diag" use_diag = Yast::SCR.Read(Yast.path(".target.string"), diag_file) if File.exist?(diag_file) use_diag.to_i == 1 end
If the file does not exist, "use_diag" will remain nil, and "use_diag.to_i" will throw a nil.NilClass exception because "use_diag.to_i" will evaluate to "nil.to_i". -- You are receiving this mail because: You are on the CC list for the bug.