Project

General

Profile

Actions

Bug #23362

closed

Hammer: many deprecation warnings in 1.17.0

Added by Stephan Schultchen over 6 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Yes
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

since udating to 1.17.0 hammer gives deprecation warnings like this:

/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/appender.rb:139: warning: constant ::Fixnum is deprecated
/opt/theforeman/tfm/root/usr/share/gems/gems/awesome_print-1.7.0/lib/awesome_print/formatters/base_formatter.rb:31: warning: constant ::Fixnum is deprecated
/opt/theforeman/tfm/root/usr/share/gems/gems/awesome_print-1.7.0/lib/awesome_print/formatters/base_formatter.rb:31: warning: constant ::Fixnum is deprecated
/opt/theforeman/tfm/root/usr/share/gems/gems/awesome_print-1.7.0/lib/awesome_print/formatters/base_formatter.rb:31: warning: constant ::Fixnum is deprecated
uninitialized constant Fog::Compute::Ovirt

also i am irritated by "uninitialized constant Fog::Compute::Ovirt" the host is beeing created in VMWave, not in OVirt/RHEV


Related issues 1 (0 open1 closed)

Related to Hammer CLI Import - Bug #23058: Warning: lib/hammer_cli_import/persistentmap.rb:27: warning: constant ::Fixnum is deprecatedRejected03/29/2018Actions
Actions #1

Updated by Stephan Schultchen over 6 years ago

  • Subject changed from Hammer: many derecation warnings in 1.17.0 to Hammer: many deprecation warnings in 1.17.0
Actions #2

Updated by Stephan Schultchen over 6 years ago

  • Category set to Host creation
  • Translation missing: en.field_release set to 296
Actions #3

Updated by Tomáš Strachota over 6 years ago

  • Related to Bug #23058: Warning: lib/hammer_cli_import/persistentmap.rb:27: warning: constant ::Fixnum is deprecated added
Actions #4

Updated by Tomáš Strachota over 6 years ago

  • Project changed from Foreman to Hammer CLI
  • Category changed from Host creation to Hammer core
  • Priority changed from Normal to High

Appears at Ruby 2.4 and higher where Fixnum has been deprecated https://bugs.ruby-lang.org/issues/12739

We should update dependencies to:
Actions #5

Updated by Tomáš Strachota over 6 years ago

There was an issue with tagging the packages an therefore they didn't make it into 1.17. The next minor release should fix that. I'll keep this issue open until we verify it's fixed by the next release.

Actions #6

Updated by metal cated over 6 years ago

  • Triaged set to No

Temp fix for hammer command:

sed -i 's/Fixnum/Integer/g' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_import-0.11.3/lib/hammer_cli_import/persistentmap.rb

Actions #7

Updated by Oleh Fedorenko about 5 years ago

  • Status changed from New to Closed
  • Triaged changed from No to Yes

Not reproducible on the latest and the newest dependency gems are released. Closing.

If you still need help with this one, please reopen the issue.

Actions

Also available in: Atom PDF