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

Add additional data to node discovered event #537

Merged
merged 1 commit into from
Nov 1, 2017

Conversation

gavin-scott
Copy link
Contributor

Include the serial number, manufacturer and product from the
dmi catalog.


return self._getHwInfoCatalog()
.then(function(dmi) {
var hwInfo = dmi['System Information']

Choose a reason for hiding this comment

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

Missing semicolon.

}).then(function (catalog) {
if (!catalog) {
return Promise.reject(
new Error('Could not find dmi catalog data.'));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@keedya mentioned in slack we probably don't want to fail here if the data isn't available. I can clean this up tomorrow to make sure missing catalog data doesn't fail this job.

Include the serial number, manufacturer and product from the
dmi catalog.
@gavin-scott
Copy link
Contributor Author

@keedya updated this with better error handling and a test.

@keedya
Copy link
Contributor

keedya commented Oct 27, 2017

@gavin-scott looks good. Will run our system testing and run it by the team.
It is a +1 for me

@keedya
Copy link
Contributor

keedya commented Oct 27, 2017

Adding more reviewere:
@geoff-reid @anhou @johren

@geoff-reid geoff-reid merged commit db15e7b into RackHD:master Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants