Skip to content

create_pen_list: only print if values are set #105

Merged
merged 1 commit into from
May 29, 2019

Conversation

vmauery
Copy link
Member

@vmauery vmauery commented Feb 27, 2019

If a build environment doesn't have network access the fetch of the IANA PEN list will fail and the create_pen_list script will create invalid output causing the build to fail. This fixes the parsing.

@AlexanderAmelkin
Copy link
Contributor

Great. I'm willing to merge this for now, but it looks like it is related to #11, isn't it? If so, please put a "Partially resolves #11" into the commit message.

@vmauery
Copy link
Member Author

vmauery commented May 28, 2019

can it work,when the server is offline?

This change only affects the building of ipmitool. If the remote server that the PEN list is downloaded from is unavailable, or the machine building ipmitool is offline, then this allows the build to succeed, using a mostly-empty list instead of the full IANA PEN list.

On a failed download of the PEN list, the create_pen_list script
improperly printed an invalid entry of { , "" } causing the build to
fail. The last line print must check that it has something to print or
it will print the wrong thing.

Partially resolves ipmitool#11

Signed-off-by: Vernon Mauery <vernon.mauery@intel.com>
@AlexanderAmelkin AlexanderAmelkin merged commit e65a96b into ipmitool:master May 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants