Skip to content

Commit

Permalink
Merge pull request #13 from oamg/fix/redundant-quotes-ansible
Browse files Browse the repository at this point in the history
Remove redundant quotes in ansible tasks final message
  • Loading branch information
andywaltlova authored Feb 13, 2024
2 parents 04ec8ce + b83f50e commit 4b96284
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions playbooks/leapp_preupgrade_ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@
- name: Set message if inhibitors or errors present
set_fact:
message: >-
"The upgrade cannot proceed. Your system has {{ error_count | int + inhibitor_count | int }} inhibitor{{ 's' if inhibitor_count | int + error_count | int != 1 else '' }}
out of {{ total_problems_count }} potential problems."
The upgrade cannot proceed. Your system has {{ error_count | int + inhibitor_count | int }} inhibitor{{ 's' if inhibitor_count | int + error_count | int != 1 else '' }}
out of {{ total_problems_count }} potential problems.
when: inhibitor_count != "0" or error_count != "0"


Expand Down
8 changes: 4 additions & 4 deletions playbooks/leapp_upgrade_ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,15 @@
- name: Set default fail message
set_fact:
message: >-
"The upgrade cannot proceed.
The upgrade cannot proceed.
Your system has {{ error_count | int + inhibitor_count | int }} inhibitor{{ 's' if inhibitor_count | int + error_count | int != 1 else '' }}
out of {{ total_problems_count }} potential problems."
out of {{ total_problems_count }} potential problems.
- name: Set message if leapp upgrade succeeded
set_fact:
message: >-
"No problems found. The system will be upgraded. Rebooting system in 1 minute.
After reboot check inventory to verify the RHEL system is registered with new major version."
No problems found. The system will be upgraded. Rebooting system in 1 minute.
After reboot check inventory to verify the RHEL system is registered with new major version.
when: is_leapp_upgrade_successful is true

- name: Set report content as empty if upgrade was successful
Expand Down

0 comments on commit 4b96284

Please sign in to comment.