Skip to content

Commit 8ce9fbf

Browse files
fix: linting issues + templating in lookup module
Signed-off-by: Shantanoo 'Shan' Desai <[email protected]>
1 parent e6de704 commit 8ce9fbf

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/image_build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
permissions:
2222
contents: read
2323
packages: write
24-
24+
2525
steps:
2626
- name: Checkout Codebase
2727
uses: actions/checkout@v3
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Setup QEMU for Multi-Arch images
3636
uses: docker/setup-qemu-action@v2
37-
37+
3838
- name: setup Docker Buildx for Multi-Arch images
3939
uses: docker/setup-buildx-action@v2
4040

@@ -44,7 +44,7 @@ jobs:
4444
registry: ${{ env.REGISTRY }}
4545
username: ${{ github.actor }}
4646
password: ${{ secrets.GITHUB_TOKEN }}
47-
47+
4848
- name: Build and Push Image
4949
uses: docker/build-push-action@v4
5050
with:

.github/workflows/tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
python-version:
2424
- "3.12"
2525
- "3.11"
26-
26+
2727
steps:
2828
- name: Checkout Codebase
2929
uses: actions/checkout@v4
@@ -32,27 +32,27 @@ jobs:
3232
uses: actions/setup-python@v5
3333
with:
3434
python-version: ${{ matrix.python-version }}
35-
35+
3636
- name: Install ansible and pip dependencies
3737
run: python -m pip install -r requirements.txt
38-
38+
3939
- name: Install ansible.utils collection
4040
run: ansible-galaxy collection install -r requirements.yml
4141

4242
- name: Generate the Default Komponist Stack
4343
run: ansible-playbook -vv generate_stack.yml
44-
44+
4545
- name: Test Integrity of Generated Directories
4646
run: ansible-playbook tests/test_generated_directories.yml
47-
47+
4848
- name: Test Integrity of Generated Files
4949
run: ansible-playbook tests/test_generated_files.yml
5050

5151
- name: Test Schema Validation Checks for Generated Files
5252
run: ansible-playbook tests/test_schemas.yml
53-
53+
5454
- name: Test Content Checks for Generated Files for Mosquitto / Node-RED
5555
run: ansible-playbook tests/test_file_contents.yml
56-
56+
5757
- name: Test Containers for Komponist
5858
run: ansible-playbook tests/test_compose_containers.yml

bootstrap_nodered.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
- name: (Online) Read `nodes.json` File for Bootstrapping Node-RED
7575
ansible.builtin.set_fact:
76-
external_nodes: "{{ lookup('ansible.builtin.file', '{{ komponist.deploy_dir | default(ansible_user_dir + '/.komponist') }}/nodered/nodes.json') }}"
76+
external_nodes: '{{ lookup("ansible.builtin.file", komponist.deploy_dir | default(ansible_user_dir + "/.komponist") + "/nodered/nodes.json") }}'
7777
tags: [online]
7878

7979
- name: (Online) Bootstrap Node-RED with External Nodes using nodes.json

export_nodes_nodered.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
- name: Generate nodes.json File for External Node Modules
8181
ansible.builtin.copy:
8282
dest: "{{ komponist.deploy_dir | default(ansible_user_dir + '/.komponist') }}/nodered/nodes.json"
83-
content: "{{ external_nodes | to_nice_jsotrue
83+
content: "{{ external_nodes | to_nice_json }}"
8484
mode: "0640"
8585
tags: [always]
8686

0 commit comments

Comments
 (0)