-
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
Collect more attributes for Ansible Tower job #14076
Conversation
be8c5b8
to
b059b3d
Compare
@bdunne Please review |
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.
Overall, looks good
|
||
if parameters.empty? | ||
self.parameters = | ||
raw_job.extra_vars_hash.collect do |para_key, para_val| |
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.
I think this should be on the previous line to prevent the awkward indentation.
@@ -119,4 +120,11 @@ def inventory_name(action) | |||
def use_default_inventory?(hosts) | |||
hosts.blank? || hosts == 'localhost' | |||
end | |||
|
|||
# update job attributes only available to playbook provisioning | |||
def update_job_for_playbook(action, job, hosts) |
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.
Does this need a hosts = nil
or are you expecting someone to pass nil
as the last arg?
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 is a private method used internal only, but hosts might be nil
if it is never set anywhere.
b059b3d
to
303d3da
Compare
@bzwei Please review test failures. |
303d3da
to
e807f8e
Compare
Checked commit bzwei@e807f8e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
New attributes include start_time, finish_time, verbosity, hosts, and configuration_script_base_id
https://www.pivotaltracker.com/story/show/140529219