-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebuild HDM for Webpack 5 #10374
Rebuild HDM for Webpack 5 #10374
Conversation
I wonder if this has to do with our recent changes around host STI:
It's this part: https://github.com/betadots/foreman_hdm/blob/01454d0149dd9ec1b0153ff36ef14ac519d9a9a2/lib/foreman_hdm/engine.rb#L34-L38 Looking at https://github.com/theforeman/foreman/blob/262b5caceab9c3f71d0b80f189cc724389593fb0/app/registries/foreman/plugin.rb#L506 I think that needs to be But really, the difference I see is that other classes use the concrete class cc @ofedoren |
Yeap, it's related. Since Again, new changes in |
Looks like both are done in practice: foreman_monitoring passes a hash because it's used for both |
I do not believe this assessment is correct. If our call to Also, this works even in the latest ruby 3.3: 3.3.0 :001 > def smart_proxy_for(klass, name, options)
3.3.0 :002 > p options
3.3.0 :003 > p options.class
3.3.0 :004 > end
=> :smart_proxy_for
3.3.0 :005 > smart_proxy_for nil, nil, test: 23
{:test=>23}
Hash
=> Hash As you can see, the keyword arguments still get converted to a |
I dug a little deeper and indeed, if I change our call to The problem seems to be, that if you have the following signature for def self.method_missing(method, *args, **kwargs, &block) and then call a method with a |
FWIW, ekohl was right above, if we use If it is safe to do so, I am happy to make that change. |
It means you can no longer support discovered hosts (from https://github.com/theforeman/foreman_discovery), but I think that's actually correct. You don't run Puppet on those, since they're not provisioned yet. |
You probably could use |
See theforeman/foreman-packaging#10374 for all the details.
Thank you all for getting back to me so quickly. I created a PR in our repository that should fix the issue. |
#10577 had an updated version that built fine |
No description provided.