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

Ansible tower #73

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

neetinkandhare
Copy link

Modifications:

  1. 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

  2. Ansible Tower Run Job - Incident
    Post process script modified. to handle if any result key is not available

  3. Ansible Tower Run Job - Datatable
    Post process script modified. to handle if any result key is not available

  4. Ansible Tower Run Job - Artifact
    Post process script modified. to handle if any result key is not available

  5. 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.

fn_ansible_tower/README.md Outdated Show resolved Hide resolved
fn_ansible_tower/apikey_permissions.txt Outdated Show resolved Hide resolved
@@ -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 '`"
Copy link
Collaborator

Choose a reason for hiding this comment

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

these need to remain

fn_ansible_tower/entrypoint.sh Outdated Show resolved Hide resolved
#
## notes permissions
#edit_all_incident_notes
edit_all_incident_notes
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this needed?

Copy link
Author

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
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this needed?

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants