-
Notifications
You must be signed in to change notification settings - Fork 95
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
Ansible tower #73
base: master
Are you sure you want to change the base?
Ansible tower #73
Conversation
Get latest ibmresilient:master
fn_ansible_tower/entrypoint.sh
Outdated
@@ -7,12 +7,10 @@ APP_CONFIG_SHA=`sha256sum /etc/rescircuits/app.config` | |||
resilient-circuits run & CIRCUITS_PID=`echo $!` | |||
while true | |||
do | |||
echo -n "`date +'%F %T,%N INFO '`" |
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.
these need to remain
# | ||
## notes permissions | ||
#edit_all_incident_notes | ||
edit_all_incident_notes |
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 is this needed?
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 updates incident notes, does this permission not required for updating notes?
#delete_all_incidents | ||
#edit_all_incidents_members | ||
#edit_all_incidents_owner | ||
#edit_all_incidents_status | ||
# | ||
## incident fields, artifacts, attachments, milestones, datatables | ||
#edit_all_incidents_fields | ||
edit_all_incidents_fields |
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 is this needed?
@@ -10,17 +10,17 @@ read_function | |||
# | |||
## incident permissions | |||
#create_incident | |||
#read_all_incidents | |||
read_all_incidents |
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 is this needed?
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.
package uses data table to update the results. so felt its needed.
Modifications:
Function Name: Ansible Tower List Job Templates
Issue: Some elements of the results from restful call response doesn't has a project name information, but as per the current code if project name info is mandatory.
Modification: Changed the code to handle the situation when project information is not available, filling those project name column with null values.
Error Code Line:
return [project for project in results if compiled.match(project['summary_fields']['project']['name'])]
Fixed Line code:
pro_list = []
for project in results:
pro_name = project.get("summary_fields", {}).get("project", {}).get("name", None)
if pro_name:
if compiled.match(pro_name):
pro_list.append(project)
return pro_list
Ansible Tower Run Job - Incident
Post process script modified. to handle if any result key is not available
Ansible Tower Run Job - Datatable
Post process script modified. to handle if any result key is not available
Ansible Tower Run Job - Artifact
Post process script modified. to handle if any result key is not available
Ansible Tower Get job results
Post process script modified. Currently for notes & attachments save as type its only executing notes section. modified to execute defined sections bases on save as type.