Project

General

Profile

Actions

Bug #22281

closed

Ruby Warnings on every call of foreman-rake

Added by Sebastian Bublitz over 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hi,

since I upgraded to Foreman 1.16/Katello 3.5, I get the following warnings on every run of a foreman-rake task:
/usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
/usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here

I can find these in db-seed.log, on calling katello-backup or calling:

  1. sudo -u foreman /usr/sbin/foreman-rake templates:sync prefix="" branch="master" repo="<gitrepo>"
    /usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
    /usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
    <successful template sync>

These warnings don't seem to affect the outcome of the corresponding jobs, but since I'm not good at ruby I'm neither able to tell for sure nor can I see how this error produced.

Actions #1

Updated by Sebastian Bublitz over 5 years ago

  • Status changed from New to Resolved

This has been fixed somewhere on the way to Katello 3.9

Actions

Also available in: Atom PDF