Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Change failed to removed in cli #831

Merged
merged 1 commit into from Aug 10, 2017
Merged

Conversation

MohamedAshiqrh
Copy link
Member

Signed-off-by: mliyazud mliyazud@redhat.com

@MohamedAshiqrh
Copy link
Member Author

@heketi/maintainers This is PR is result of discussion in #779

@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@MohamedAshiqrh
Copy link
Member Author

This PR creates a temp variable for removed and replaces the failed to removed.

@MohamedAshiqrh
Copy link
Member Author

@lpabon @obnoxxx PTAL

@@ -265,6 +265,10 @@ var nodeInfoCommand = &cobra.Command{
if err != nil {
return err
}
const entryStateRemoved api.EntryState = "removed"
if info.State == api.EntryStateFailed {
info.State = entryStateRemoved
Copy link
Contributor

Choose a reason for hiding this comment

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

This is good, but quick question? Why create a const? Just in case it is used in the future?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done 👍 :)

Signed-off-by: mliyazud <mliyazud@redhat.com>
@MohamedAshiqrh
Copy link
Member Author

@lpabon PTAL

@lpabon
Copy link
Contributor

lpabon commented Aug 10, 2017

Sorry, that is not what I meant. I meant just use:

info.State = "failed"

But it is ok, I'll just merge it and fix that later.

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

3 participants