Skip to content

Commit

Permalink
Fix violations reported by "yamllint" (boolean values).
Browse files Browse the repository at this point in the history
All boolean values should be lowercase.
Fixing 13 violations:
  yaml: truthy value should be one of [false, true] (yaml[truthy])

Signed-off-by: Pavel Bar <pbar@redhat.com>
Bug-Url: https://bugzilla.redhat.com/2097332
  • Loading branch information
barpavel committed Jun 19, 2022
1 parent 0c2c0d0 commit 8b920df
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions roles/disaster_recovery/examples/disaster_recovery_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ dr_import_storages:
dr_secondary_name: "secondary_master_storage"

- dr_domain_type: "nfs"
dr_wipe_after_delete: False
dr_backup: False
dr_wipe_after_delete: false
dr_backup: false
dr_critical_space_action_blocker: 5
dr_warning_low_space: 5
dr_primary_master_domain: "False"
Expand All @@ -31,14 +31,14 @@ dr_import_storages:
dr_primary_path: "/export/path2"
dr_primary_dc_name: "Prod"
dr_secondary_name: "path2"
dr_secondary_master_domain: False
dr_secondary_master_domain: false
dr_secondary_address: "yy.yy.yy.yy"
dr_secondary_path: "/export/path2"
dr_secondary_dc_name: "Recovery"

- dr_domain_type: "iscsi"
dr_wipe_after_delete: False
dr_backup: False
dr_wipe_after_delete: false
dr_backup: false
dr_critical_space_action_blocker: 1
dr_warning_low_space: 5
dr_primary_master_domain: "False"
Expand Down
4 changes: 2 additions & 2 deletions roles/disaster_recovery/tasks/clean/shutdown_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
ovirt_vm:
state: stopped
name: "{{ vms.name }}"
force: True
wait: True
force: true
wait: true
auth: "{{ ovirt_auth }}"
ignore_errors: "{{ dr_ignore_error_clean }}"
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Fetch unregistered Templates from storage domain
ovirt_storage_template_info:
nested_attributes: "id"
unregistered: True
unregistered: true
storage_domain: "{{ storage.name }}"
auth: "{{ ovirt_auth }}"
register: storage_template_info
Expand Down
2 changes: 1 addition & 1 deletion roles/disaster_recovery/tasks/recover/register_vms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Fetch unregistered VMs from storage domain
ovirt_storage_vm_info:
nested_attributes: "id"
unregistered: True
unregistered: true
storage_domain: "{{ storage.name }}"
auth: "{{ ovirt_auth }}"
register: storage_vm_info
Expand Down
2 changes: 1 addition & 1 deletion roles/disaster_recovery/tasks/recover/run_vms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ovirt_vm:
state: running
name: "{{ vms.name }}"
wait: False
wait: false
auth: "{{ ovirt_auth }}"
register: result
- name: Log append succeed_to_run_vms
Expand Down
4 changes: 2 additions & 2 deletions roles/disaster_recovery/tasks/recover_engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
username: "{{ vars['dr_sites_' + dr_target_host + '_username'] }}"
password: "{{ vars['dr_sites_' + dr_target_host + '_password'] }}"
ca_file: "{{ vars['dr_sites_' + dr_target_host + '_ca_file'] }}"
ignore_errors: False
ignore_errors: false

- name: Delete previous report log
file:
path: "/tmp/{{ dr_report_file }}"
state: absent
ignore_errors: True
ignore_errors: true

- name: Create report file
file:
Expand Down
2 changes: 1 addition & 1 deletion roles/disaster_recovery/tasks/unregister_entities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- name: Fetch all data of running VMs from file, if exists.
set_fact: running_vms_fail_back="{{ lookup('file', dr_running_vms) }}"
when: stat_result.stat.exists
ignore_errors: True
ignore_errors: true

- name: Init list property for running_vms
set_fact:
Expand Down

0 comments on commit 8b920df

Please sign in to comment.