-
Notifications
You must be signed in to change notification settings - Fork 898
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
Escalate privilege #14929
Escalate privilege #14929
Conversation
@miq-bot enhancement, providers/ansible_tower, services, fine/yes |
@bzwei unrecognized command 'enhancement', ignoring... Accepted commands are: add_label, assign, close_issue, move_issue, remove_label, rm_label, set_milestone |
@miq-bot add_label enhancement, providers/ansible_tower, services, fine/yes |
cc @h-kataria |
@miq-bot add_label blocker |
@@ -104,7 +104,7 @@ def self.build_parameter_list(name, description, info) | |||
:ask_limit_on_launch => true, | |||
:ask_inventory_on_launch => true, | |||
:ask_credential_on_launch => true | |||
} | |||
}.merge(info.slice(:become_enabled)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not set this with the other parameters?
:become_enable => info[:become_enabled]
or if the API cannot support the property possibility being nil
:become_enable => info[:become_enabled] || false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way we can add more options easily, for example info.slice(:become_enabled, :allow_simultaneous)
406c819
to
fe94ea9
Compare
Checked commits bzwei/manageiq@3bbbaaf~...fe94ea9 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Escalate privilege (cherry picked from commit 291254e) https://bugzilla.redhat.com/show_bug.cgi?id=1447086
Fine backport details:
|
Tower API accepts option
:become_enabled
to escalate privilege at job template creation. The flag will enable the escalation at job launching.Will need UI work to add a checkbox for user to decide whether to enable this flag.
Links [Optional]
https://bugzilla.redhat.com/show_bug.cgi?id=1445377