Add Debian wheezy support for default version fact

Debian Wheezy has a default version of 9.1, but doesn't currently have
an operatingsystemrelease value beyond 'wheezy'. This command searches
for wheezy in the operatingsystemrelease fact and sets the fact value
accordingly.
This commit is contained in:
Adrien Thebo 2013-01-07 18:53:59 -08:00
parent 8bb71e4bc1
commit 147fa8e59b

View file

@ -14,6 +14,8 @@ def get_debian_postgres_version
# TODO: add more debian versions or better logic here
when /^6\./
"8.4"
when /^wheezy/
"9.1"
else
nil
end