You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `append` alias is only available if ActiveRecord is loaded _or_
sensu is running ruby-2.5.1.
This change maintains backwards compatibility with non-EOL Rubies.
**Before**
```
Check failed to run: undefined method `append' for []:Array,
["/opt/sensu/.rvm/gems/ruby-2.4.1/gems/sensu-plugins-postgres-2.3.0/bin/metric-postgres-statsdb.rb:104:in
`run'",
"/opt/sensu/.rvm/gems/ruby-2.4.1/gems/sensu-plugin-1.4.5/lib/sensu-plugin/cli.rb:58:in
`block in <class:CLI>'"]
```
**After**
```
CheckPostgres OK: Server version: {"version"=>"PostgreSQL 11.1 (Ubuntu
11.1-1.pgdg18.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu
7.3.0-27ubuntu1~18.04) 7.3.0, 64-bit"}
```
0 commit comments