Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

various roles: ansible-lint 6.22.0 cleanup #557

Merged

Conversation

berndfinger
Copy link
Member

Solves issue #535 for the following roles:

  • sap_netweaver_preconfigure
  • sap_hana_preconfigure
  • sap_hana_install
  • sap_swpm
  • sap_install_media_detect
  • sap_hostagent

@berndfinger berndfinger requested review from rhmk and ja9fuchs December 20, 2023 08:32
changed_when: "'Install service' in installagent.stdout"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the double quote irrelevant?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not. We have the same syntax in all other roles as per output of:

$ cd (collection root)
$ grep -rn "changed_when" | grep " in "

Also, while working on fixing #555, I got the following error message when removing the double quotes from the that: statement in one of the assert tasks:

  ansible.builtin.assert:
    that: 'bind-utils' in ansible_facts.packages
                       ^ here
This one looks easy to fix. It seems that there is a value started
with a quote, and the YAML parser is expecting to see the line ended
with the same kind of quote. For instance:

    when: "ok" in result.stdout

Could be written as:

   when: '"ok" in result.stdout'

Or equivalently:

   when: "'ok' in result.stdout"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation.

Copy link
Member

@rhmk rhmk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@berndfinger berndfinger removed the request for review from ja9fuchs December 20, 2023 10:50
@berndfinger berndfinger merged commit a128678 into sap-linuxlab:dev Dec 20, 2023
6 checks passed
@berndfinger berndfinger deleted the issue-535-nw+hana-preconfigure branch December 20, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants