Skip to content

check-es-query-count warning: constant ::Fixnum is deprecated #181

@kespineira

Description

@kespineira

Hello,

I'm using your plugins with Sensu Go and the check-es-query-count.rb return a warning:

/var/cache/sensu/sensu-agent/4cd5f5f78eb0528af3d94577321839eba4e82ef34ad9ed8b4873dee49a32a2be41f7c0f34b901b0101b1556530cb1bdae96a858c4726c75dbdbf106586c76962/lib/ruby/2.4.0/gems/elasticsearch-transport-1.0.18/lib/elasticsearch/transport/transport/base.rb:52: warning: constant ::Fixnum is deprecated
/var/cache/sensu/sensu-agent/4cd5f5f78eb0528af3d94577321839eba4e82ef34ad9ed8b4873dee49a32a2be41f7c0f34b901b0101b1556530cb1bdae96a858c4726c75dbdbf106586c76962/lib/ruby/2.4.0/gems/elasticsearch-transport-1.0.18/lib/elasticsearch/transport/transport/base.rb:54: warning: constant ::Fixnum is deprecated

I'm also using the ruby-runtime asset but I don't know how to remove the warnings without having to put the RUBYOPT=-W0 option in the command as follows, RUBYOPT=-W0 check-es-query-count.rb <options>.

I hope you can help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions