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

Fix issue 5649: makedhcp misleading error message #5651

Merged
merged 2 commits into from
Sep 26, 2018
Merged

Fix issue 5649: makedhcp misleading error message #5651

merged 2 commits into from
Sep 26, 2018

Conversation

zet809
Copy link

@zet809 zet809 commented Sep 21, 2018

The PR is to fix issue #5649

The modification include

Modify the warning message if failed to get/resolve xcatmaster

The UT result

# makedhcp <mynode>
Error: [xcatmn]: Unable to determine the tftpserver for <mynode>, please makesure "xcatmaster" is set correctly

return;
}
} else {
my $tmp_server = inet_aton($node_server);
unless ($tmp_server) {
$callback->({ error => ["Unable to resolve the tftpserver for $node"], errorcode => [1] });
$callback->({ error => ["Unable to determine the tftpserver for $node, please makesure \"xcatmaster\" is set correctly"], errorcode => [1] });
Copy link
Member

Choose a reason for hiding this comment

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

I think resolve is the correct term here?
I think inet_aton($node_server); is trying to resolve it, isn't it?

Copy link
Contributor

Choose a reason for hiding this comment

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

A suggestion to improve the message. In all three messages instead of "please make sure" use "verify".

@zet809
Copy link
Author

zet809 commented Sep 25, 2018

hi, @Obihoernchen and @gurevichmark , modified.

@bybai
Copy link
Contributor

bybai commented Sep 26, 2018

I am OK to merge it.

@bybai bybai merged commit 827bdf3 into xcat2:master Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants