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

This resolves an issue where "berks install" fails due to a cert is already being in the hash table. #23

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

nikhil2611
Copy link

@nikhil2611 nikhil2611 commented Sep 27, 2023

Description

This resolves an issue where "berks install" fails due to a cert is already being in the hash table. The error is being accidentally raised because the message string does not match exactly what is stored in e.message.
We tweaked the error handler to be a regex match versus a strict text match.

Instead if using e.message == "cert already in hash table" we can use a regular expression instead like this: e.message.match(/cert already in hash table/)

Issues Resolved

https://chefio.atlassian.net/browse/CHEF-3994

Check List

  • New functionality includes tests
  • All tests pass
  • RELEASE_NOTES.md has been updated if required (not required for bugfixes, required for API changes)

@sonarcloud
Copy link

sonarcloud bot commented Sep 27, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarqube-for-infrastructure-prod

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@nikhil2611 nikhil2611 merged commit 11b4a6d into main Sep 27, 2023
5 checks passed
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