Fix bug with debian_nextcodename

This commit is contained in:
Jerome Charaoui 2015-06-03 16:20:36 -04:00
parent d007a40333
commit 3a7dd605e3

View file

@ -6,7 +6,7 @@ def debian_codename_to_next(codename)
if codename == "sid"
return "experimental"
else
codenames = Facter::Util::Debian::CODENAMES.values.reverse
codenames = Facter::Util::Debian::CODENAMES.values
i = codenames.index(codename)
if i and i+1 < codenames.count
return codenames[i+1]