-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
cmds/update: use new cmds lib #5730
Conversation
|
||
// Get the node iff already defined. | ||
if req.InvocContext().Online { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is important. We should onlu get the node if-and-only-if (iff) it is already defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kevina Should we add a helper function cmdenv.IsOnline()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it used in more than one or two places? Is do I would define one. Otherwise I wouldn't bother.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kevina Could u help me review it again?
1c4844e
to
db08d26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM but I would like @Stebalien to have a closer look before merging.
db08d26
to
90aae6e
Compare
90aae6e
to
1d65315
Compare
d2b83ed
to
d51bcc6
Compare
License: MIT Signed-off-by: Overbool <[email protected]>
d51bcc6
to
5002d59
Compare
So, I went ahead and managed to blow away that last change (review change) when rebasing (fetched the wrong remote and saw that everything was up-to-date). However, I believe I've restored the change. |
Ref: #5664
License: MIT
Signed-off-by: Overbool [email protected]