Skip to content
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

fixes #15179 - Select box for settings #189

Merged
merged 1 commit into from
May 27, 2016
Merged

fixes #15179 - Select box for settings #189

merged 1 commit into from
May 27, 2016

Conversation

sean797
Copy link
Member

@sean797 sean797 commented May 25, 2016

@sean797 sean797 changed the title fixes #15179 - Select box for remote_execution_effective_user_method … fixes #15179 - Select box for settings May 25, 2016
@stbenjam
Copy link
Member

The commit message is good, @theforeman-bot seems to be looking at the older commit.

'sudo',
'remote_execution_effective_user_method',
nil,
{ :collection => Hash[SSHExecutionProvider::EFFECTIVE_USER_METHODS.map{|method| [method, method]}]}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be a proc, as Foreman changed how this worked shortly after, see theforeman/foreman@1f82328

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a proc for that seems pointless? It's not like it's going to change dynamically like Organisations/Locations or templates.

Copy link
Member

@stbenjam stbenjam May 27, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's explained in the issue http://projects.theforeman.org/issues/14963. This particular case may be static, but everything needs to be wrapped in proc, your change doesn't work against the latest foreman develop. It generates an exception when you load the page.

Copy link
Member Author

@sean797 sean797 May 27, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see what you mean, I've just rebased my dev environment 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good. The proc is somewhat useless here I agree, I wish it was optional but oh well.

@stbenjam
Copy link
Member

Thanks @sean797 !

MariaAga pushed a commit to MariaAga/foreman_remote_execution that referenced this pull request Sep 3, 2021
On 1.13 foreman_tasks needs to be initialized before :finisher_hook,
since doing it 'after' has been deprecated for a while and will be
removed.
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.

3 participants