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

YaST2 HA Setup for SAP Products - cannot input several instance numbe… #15

Merged
merged 2 commits into from
Dec 16, 2022

Conversation

varkoly
Copy link
Collaborator

@varkoly varkoly commented Sep 9, 2022

Problem

Valid SAP instance number is not recognized as valid.

  • https://bugzilla.suse.com/show_bug.cgi?id=1202979
    The SAP instance number must contains 2 digits and it is in the range from 00 to 99.
    Integer numbers starting with 0 are interpreted by Ruby as octal numbers. Therefore 08 and 09 are not recognized as valid.

Solution

Use a regex to validate the SAP instance number:

SAP_INST_NUM_REGEX = Regexp.new('^[0-9]{2}$')

@coveralls
Copy link

coveralls commented Sep 9, 2022

Pull Request Test Coverage Report for Build 3023084597

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 29.538%

Totals Coverage Status
Change from base Build 2832273493: 0.03%
Covered Lines: 1240
Relevant Lines: 4198

💛 - Coveralls

@varkoly varkoly merged commit 42ce19e into yast:SLE-15-SP3 Dec 16, 2022
@yast-bot
Copy link

❌ Internal Jenkins job #2 failed

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.

4 participants