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

Make shard plugin more resilient and throw better errors #1446

Merged
merged 1 commit into from
Apr 7, 2020

Conversation

jaymzh
Copy link
Collaborator

@jaymzh jaymzh commented Apr 6, 2020

  • Catch a variety of problems and Ohai::Log.error about them. Since this
    is an optional plugin, if we're hitting these, someone specifically
    requested this plugin, so an error is warranted.
  • We raise anyway, so that you don't spew further errors

Fixes #1385

@tas50
Copy link
Contributor

tas50 commented Apr 6, 2020

@jaymzh any chance you can take a stab at adding some tests for this?

@jaymzh
Copy link
Collaborator Author

jaymzh commented Apr 6, 2020

tests that it warns properly? Sure!

* Catch a variety of problems and Ohai::Log.error about them. Since this
  is an optional plugin, if we're hitting these, someone specifically
  requested this plugin, so an error is warranted.
* We raise anyway, so that you don't spew further errors

Fixes chef#1385

Signed-off-by: Phil Dibowitz <phil@ipom.com>
@jaymzh
Copy link
Collaborator Author

jaymzh commented Apr 7, 2020

Tests added!

@tas50 tas50 merged commit 5edd294 into chef:master Apr 7, 2020
@tas50
Copy link
Contributor

tas50 commented Apr 7, 2020

Thanks @jaymzh

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.

Shard plugin no longer creating a seed on Amazon Linux 1
2 participants