Skip to content

Conversation

@agrare
Copy link
Member

@agrare agrare commented Nov 18, 2025

v in this case is the result of allowed_configuration_scripts and so is an OpenStruct but val is the selected integer value so calling .id fails with:

FATAL -- : Error caught: [NoMethodError] undefined method `id' for an instance of Integer
app/controllers/application_controller/miq_request_methods.rb:836:in `block (2 levels) in prov_get_form_vars'
app/controllers/application_controller/miq_request_methods.rb:781:in `each'
app/controllers/application_controller/miq_request_methods.rb:781:in `block in prov_get_form_vars'

Depends on:

@agrare agrare requested a review from a team as a code owner November 18, 2025 17:56
@agrare
Copy link
Member Author

agrare commented Nov 18, 2025

Going to see about adding spec coverage to this clearly it is lacking

@agrare agrare force-pushed the fix_configuration_script_base_prov_get_form_vars branch from 9cb5743 to fe977de Compare November 18, 2025 18:50
@agrare
Copy link
Member Author

agrare commented Nov 19, 2025

Okay spec test added which would have caught the original error

@agrare
Copy link
Member Author

agrare commented Nov 19, 2025

@miq-bot cross-repo-test ManageIQ/manageiq#23657

miq-bot pushed a commit to ManageIQ/manageiq-cross_repo-tests that referenced this pull request Nov 19, 2025
@Fryguy Fryguy self-assigned this Nov 19, 2025
@Fryguy Fryguy closed this Nov 19, 2025
@Fryguy Fryguy reopened this Nov 19, 2025
@agrare agrare force-pushed the fix_configuration_script_base_prov_get_form_vars branch from f9b6450 to b789fc5 Compare November 19, 2025 16:56
@agrare
Copy link
Member Author

agrare commented Nov 19, 2025

Hmm I think cypress is failing sporadically, two different tests have failed in the last two runs

@agrare agrare force-pushed the fix_configuration_script_base_prov_get_form_vars branch from b789fc5 to 3c1f396 Compare November 19, 2025 19:02
@Fryguy
Copy link
Member

Fryguy commented Nov 19, 2025

Might be fixed by #9733

`v` in this case is the result of `allowed_configuration_scripts` and so
is an `OpenStruct` but `val` is the selected integer value so calling
`.id` fails with:

```
FATAL -- : Error caught: [NoMethodError] undefined method `id' for an instance of Integer
app/controllers/application_controller/miq_request_methods.rb:836:in `block (2 levels) in prov_get_form_vars'
app/controllers/application_controller/miq_request_methods.rb:781:in `each'
app/controllers/application_controller/miq_request_methods.rb:781:in `block in prov_get_form_vars'
```
@agrare agrare force-pushed the fix_configuration_script_base_prov_get_form_vars branch from 3c1f396 to c1d6ea8 Compare November 19, 2025 19:08
@Fryguy Fryguy merged commit 241cefb into ManageIQ:master Nov 19, 2025
5 checks passed
@agrare agrare deleted the fix_configuration_script_base_prov_get_form_vars branch November 19, 2025 19:09
@Fryguy
Copy link
Member

Fryguy commented Nov 20, 2025

Backported to spassky in commit 93d7fca.

commit 93d7fca7e9f291766e19539df7465983a80d4bae
Author: Jason Frey <[email protected]>
Date:   Wed Nov 19 14:09:10 2025 -0500

    Merge pull request #9728 from agrare/fix_configuration_script_base_prov_get_form_vars
    
    Fix prov_get_form_vars for ConfigurationScriptBase
    
    (cherry picked from commit 241cefbbca1929dacdb2d9045e437ed5b4fc92c8)

Fryguy added a commit that referenced this pull request Nov 20, 2025
…ov_get_form_vars

Fix prov_get_form_vars for ConfigurationScriptBase

(cherry picked from commit 241cefb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants