Skip to content

Commit

Permalink
Fix trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bhati-pradeep committed Jan 4, 2024
1 parent 5069865 commit 55e2b81
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
- ".github/**"

⚙ build:
- "Makefile"
- "Makefile"
2 changes: 1 addition & 1 deletion .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: Run Flake8
run: |
pip install -r requirements.txt
flake8
flake8
2 changes: 1 addition & 1 deletion .github/workflows/isort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: isort/isort-action@master
- uses: isort/isort-action@master
8 changes: 4 additions & 4 deletions .github/workflows/ok-to-test-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
args="${{ github.event.client_payload.slash_command.args.all }}"
flag=""
if [ "$args" = "allow-disabled" ]
then
then
flag="--allow-disabled"
fi
echo '${{ secrets.FOUNDATION_CONFIG }}' > tests/integration/targets/prepare_foundation_env/vars/main.yml
echo '${{ secrets.FC_CONFIG }}' > tests/integration/targets/prepare_fc_env/vars/main.yml
echo '${{ secrets.PC_CONFIG }}' > tests/integration/targets/prepare_env/vars/main.yml
echo '${{ secrets.NDB_CONFIG }}' > tests/integration/targets/prepare_ndb_env/vars/main.yml
echo '${{ secrets.PC_CONFIG }}' > tests/integration/targets/prepare_env/vars/main.yml
echo '${{ secrets.NDB_CONFIG }}' > tests/integration/targets/prepare_ndb_env/vars/main.yml
ansible-playbook tests/integration/targets/prepare_env/tasks/prepare_env.yml
ansible-playbook tests/integration/targets/prepare_ndb_env/tasks/prepare_env.yml
ansible-playbook tests/integration/targets/prepare_fc_env/tasks/prepare_fc_env.yml
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
number: ${{ github.event.client_payload.pull_request.number }}
job: ${{ github.job }}
# Conveniently, job.status maps to https://developer.github.com/v3/checks/runs/#update-a-check-run
conclusion: ${{ job.status }}
conclusion: ${{ job.status }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ok-to-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
token: ${{ secrets.PAT }}
commands: ok-to-test
permission: write
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: echo "🍏 This job's status is ${{ job.status }}."
18 changes: 8 additions & 10 deletions examples/address_groups_crud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,29 @@
- network_ip: "10.1.2.2"
network_prefix: 32
register: ag

- name: update address group
ntnx_address_groups:
state: present
address_group_uuid: "{{ag.address_group_uuid}}"
address_group_uuid: "{{ ag.address_group_uuid }}"
name: test-ansible-group-1-updated
desc: test-ansible-group-1-desc-updated
subnets:
- network_ip: "10.1.3.0"
network_prefix: 24
register: updated_ag

- name: Read the updated address group
ntnx_address_groups_info:
address_group_uuid: "{{updated_ag.address_group_uuid}}"
address_group_uuid: "{{ updated_ag.address_group_uuid }}"
register: ag_info

- name: Print the address group details
debug:
msg: "{{ag_info}}"
msg: "{{ ag_info }}"

- name: Delete the address group.
- name: Delete the address group.
ntnx_address_groups:
state: absent
address_group_uuid: "{{updated_ag.address_group_uuid}}"
address_group_uuid: "{{ updated_ag.address_group_uuid }}"
register: op


13 changes: 6 additions & 7 deletions examples/dr/protection_policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
nutanix_password: "<pc-password>"
validate_certs: false
state: "absent"
rule_uuid: "{{pr.rule_uuid}}"
rule_uuid: "{{ pr.rule_uuid }}"

- name: Create protection rule with async schedule
ntnx_protection_rules:
Expand Down Expand Up @@ -98,7 +98,7 @@
remote_retention_policy:
num_snapshots: 1
register: result

- name: Update previously created protection policy
ntnx_protection_rules:
nutanix_host: "<pc-ip>"

Check warning on line 104 in examples/dr/protection_policy.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

jinja[spacing]

Jinja2 spacing could be improved: {{result.rule_uuid}} -> {{ result.rule_uuid }}
Expand Down Expand Up @@ -144,18 +144,18 @@
remote_retention_policy:
num_snapshots: 2
register: pr

- name: Get protection policy info and its associated vms info
ntnx_protection_rules_info:
nutanix_host: "<pc-ip>"
nutanix_username: "<pc-username>"
nutanix_password: "<pc-password>"
validate_certs: false
rule_uuid: "{{pr.rule_uuid}}"
rule_uuid: "{{ pr.rule_uuid }}"
register: result

- debug:
msg: "{{result}}"
msg: "{{ result }}"

- name: delete the protection rule
ntnx_protection_rules:
Expand All @@ -164,5 +164,4 @@
nutanix_password: "<pc-password>"
validate_certs: false
state: "absent"
rule_uuid: "{{pr.rule_uuid}}"

rule_uuid: "{{ pr.rule_uuid }}"
6 changes: 3 additions & 3 deletions examples/dr/recovery_plan_with_execution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@


- debug:
msg: "{{result}}"
msg: "{{ result }}"


- name: Update recovery plan by adding more stages and remove custom IP to enable dynamic IP allocation
Expand Down Expand Up @@ -164,7 +164,7 @@
ignore_errors: True

- debug:
msg: "{{result}}"
msg: "{{ result }}"

###################################### delete the recovery plan #################

Expand All @@ -177,4 +177,4 @@
job_uuid: "{{migrate_job.job_uuid}}"
plan_uuid: "{{recovery_plan.plan_uuid}}"
state: "absent"
register: result
register: result
20 changes: 10 additions & 10 deletions examples/ndb/provision_postgres_ha_instance_with_ips.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@

db_params_profile:
name: "<database-parameter-profile>"

db_server_cluster:
new_cluster:
name: "<database-server-cluster-name>"
cluster:
cluster:
name: "<cluster-name>"
ips:
- cluster:
Expand All @@ -42,17 +42,17 @@
name: "<compute-profile-name>"
password: "<set-vm-password>"
pub_ssh_key: "<public-ssh-key>"
vms:
vms:
- name: "vm-1"
node_type: "database"
role: "Primary"
ip: "<vm1-ip>"

- name: "vm-2"
node_type: "database"
role: "Secondary"
ip: "<vm2-ip>"

- name: "vm-3"
node_type: "database"
role: "Secondary"
Expand All @@ -61,7 +61,7 @@
- name: "vm-ha-proxy1"
node_type: "haproxy"
ip: "<ha1-ip>"

- name: "vm-ha-proxy2"
node_type: "haproxy"
ip: "<ha2-ip>"
Expand All @@ -80,7 +80,7 @@
desc: TM-desc
sla:
name: "<sla-name>"
schedule:
schedule:
daily: "11:10:02"
weekly: WEDNESDAY
monthly: 4
Expand All @@ -91,7 +91,7 @@
- name: "<add-clusters-to-timemachine>"
tags:
ansible-databases: "ha-instance-dbs"

automated_patching:
maintenance_window:
name: "<maintenance-window-name>"
Expand All @@ -104,6 +104,6 @@
post_task_cmd: "ls -F"

register: result

- debug:
msg: "{{result}}"
msg: "{{ result }}"

0 comments on commit 55e2b81

Please sign in to comment.