Bug #23362
closedHammer: many deprecation warnings in 1.17.0
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
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
Updated by Stephan Schultchen over 6 years ago
- Category set to Host creation
- Translation missing: en.field_release set to 296
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
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:- awesome-print >= 1.8.0 (https://github.com/awesome-print/awesome_print/issues/299)
- logging >= 2.2 (https://github.com/TwP/logging/blob/master/History.txt)
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.
Updated by metal cated about 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
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.