Skip to content

sap_general_preconfigure, sap_maintain_etc_hosts: Ignore comments#981

Merged
berndfinger merged 1 commit into
sap-linuxlab:devfrom
berndfinger:issue-132
Feb 25, 2025
Merged

sap_general_preconfigure, sap_maintain_etc_hosts: Ignore comments#981
berndfinger merged 1 commit into
sap-linuxlab:devfrom
berndfinger:issue-132

Conversation

@berndfinger
Copy link
Copy Markdown
Member

... in column 1 of /etc/hosts lines.

Solves issue #132.

... in column 1 of /etc/hosts lines.

Solves issue sap-linuxlab#132.

Signed-off-by: Bernd Finger <[email protected]>
Copy link
Copy Markdown
Contributor

@ja9fuchs ja9fuchs left a comment

Choose a reason for hiding this comment

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

👍

Tested on RHEL.

Verified:

  • duplicate but commented entries are ignored by both roles with the PR code, while both fail independent from each other when using the current dev code
  • the preconfigure role still fails correctly when there is a commented entry but no active one

Copy link
Copy Markdown
Contributor

@marcelmamula marcelmamula left a comment

Choose a reason for hiding this comment

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

LGTM, it works but it still looks disheveled because of #881

# 10.1.1.1 testnode.suse.com testnode
# 10.1.1.1 testnode.suse.com testnode
10.1.1.1 testnode.suse.com testnode

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.

3 participants