5381cb7b61
I noticed this behaviour because $::debian_nextcodename was "squeeze" on a wheezy host. For debugging, i inserted a "puts codenames" in lib/facter/debian_nextcodename.rb, and it turned out that it was sorted differently on wheezy and jessie hosts: On wheezy: buster stretch jessie wheezy squeeze lenny On jessie: lenny squeeze wheezy jessie stretch buster So i decided to rewrite this so this doesn't happen again.
21 lines
324 B
Ruby
21 lines
324 B
Ruby
module Facter
|
|
module Util
|
|
module Ubuntu
|
|
CODENAMES = [
|
|
"lucid",
|
|
"maverick",
|
|
"natty",
|
|
"oneiric",
|
|
"precise",
|
|
"quantal",
|
|
"raring",
|
|
"saucy",
|
|
"trusty",
|
|
"utopic",
|
|
"vivid",
|
|
"wily",
|
|
"xenial"
|
|
]
|
|
end
|
|
end
|
|
end
|