Bug #2244 ยป 0001-avoid-flapping-os.release_name-for-Debian.patch
app/models/facts_importer.rb | ||
---|---|---|
minor ||= ""
|
||
args = { :name => os_name, :major => major, :minor => minor }
|
||
os = Operatingsystem.where(args).first || Operatingsystem.create!(args)
|
||
if os_name[/debian|ubuntu/i] or os.family == 'Debian'
|
||
if facts[:lsbdistcodename] and (os_name[/debian|ubuntu/i] or os.family == 'Debian')
|
||
os.release_name = facts[:lsbdistcodename]
|
||
os.save
|
||
end
|