Skip to content

Commit b0f2a8f

Browse files
author
Morgan Haskel
committed
Merge pull request puppetlabs#562 from hunner/fix_version
This wasn't matching anything other than psql 8
2 parents fdc8180 + bfaef51 commit b0f2a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/acceptance/db_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class { 'postgresql::server': }
3030
end
3131

3232
result = shell('psql --version')
33-
version = result.stdout.match(%r{\s(8\.\d)})[1]
33+
version = result.stdout.match(%r{\s(\d\.\d)})[1]
3434
if version > "8.1"
3535
comment_information_function = "shobj_description"
3636
else

0 commit comments

Comments
 (0)