Skip to content

Commit

Permalink
Fix ansible-lint rule violations
Browse files Browse the repository at this point in the history
  • Loading branch information
ansible-code-bot-stage[bot] committed Nov 25, 2024
1 parent 92f03c9 commit baa22b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion devfile.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
schemaVersion: 2.3.0
metadata:
name: ansible-snow-development
Expand All @@ -11,5 +12,5 @@ components:
cpuLimit: 2000m
env:
- name: VSCODE_DEFAULT_WORKSPACE
value: "/"
value: /
name: ansible
5 changes: 2 additions & 3 deletions roles/servicenow_ritm_retrieve_eda/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

- name: Retrieve RITM details with retries
servicenow.itsm.api_info:
resource: sc_req_item
Expand Down Expand Up @@ -41,15 +40,15 @@
- name: Retrieve variable details in one query
servicenow.itsm.api_info:
resource: sc_item_option
sysparm_query: "sys_idIN{{ variable_mappings.record | map(attribute='sc_item_option.value') | join(',') }}"
sysparm_query: sys_idIN{{ variable_mappings.record | map(attribute='sc_item_option.value') | join(',') }}
columns: [item_option_new, value, sys_id]
register: variable_details
when: variable_mappings.record | length > 0

- name: Retrieve variable names using item_option_new IDs
servicenow.itsm.api_info:
resource: item_option_new
sysparm_query: "sys_idIN{{ variable_details.record | map(attribute='item_option_new.value') | join(',') }}"
sysparm_query: sys_idIN{{ variable_details.record | map(attribute='item_option_new.value') | join(',') }}
columns: [sys_id, name]
register: variable_names
when: variable_details.record | length > 0
Expand Down

0 comments on commit baa22b7

Please sign in to comment.