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 #12103 - Add rebuild config option for host #231

Merged
merged 1 commit into from
May 26, 2016

Conversation

shlomizadok
Copy link
Member

No description provided.

@tstrachota
Copy link
Member

I wanted to test the PR but I'm getting ERF42-5531 [Foreman::Exception]: unknown permission for api/v2/hosts#rebuild_config Are there any additional steps I need to do prior to testing this, @shlomizadok ?

class RebuildConfigCommand < HammerCLIForeman::SingleResourceCommand
action :rebuild_config
command_name "rebuild-config"
desc _('rebuild orchestration related configurations for host')
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: We usually start descriptions with capital letter.

@tstrachota
Copy link
Member

Apart from the capital letter the code looks good. I still need to test the command though.

@tstrachota tstrachota self-assigned this Apr 28, 2016
@tstrachota
Copy link
Member

@shlomizadok, I'm still getting the unknown permission exception. Any idea what could be wrong? Migrations and seeds seem to run successfully.

@shlomizadok
Copy link
Member Author

@tstrachota - Weird. It works for me...

@mbacovsky
Copy link
Member

For me it worked with fresh Foreman 1.11.

$ hammer -s "https://192.168.121.190/"  host rebuild-config --id 1
Configuration successfully rebuilt.

@mbacovsky
Copy link
Member

👍 the code looks okay and works well, thanks @shlomizadok! Merging (with @tstrachota's agreement) 🙈 .

@mbacovsky mbacovsky merged commit 382103d into theforeman:master May 26, 2016
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.

4 participants