-
Notifications
You must be signed in to change notification settings - Fork 28
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
status: remove extra empty line logging #107
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,11 +36,11 @@ func PrintCustomResourceStatus(clusterNamespace string, arg []string) { | |
if len(arg) == 1 && arg[0] == "all" { | ||
subhamkrai marked this conversation as resolved.
Show resolved
Hide resolved
|
||
command := fmt.Sprintf(getCrdList, clusterNamespace) | ||
allCRs := strings.Split(exec.ExecuteBashCommand(command), "\n") | ||
logging.Info(allCRs[0]) | ||
allCRs = allCRs[:len(allCRs)-1] // remove last empty line which is not a CR | ||
for _, cr := range allCRs { | ||
logging.Info(cr) | ||
command := fmt.Sprintf(scriptPrintSpecificCRStatus, clusterNamespace, cr) | ||
logging.Info(exec.ExecuteBashCommand(command)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be good now |
||
fmt.Println(exec.ExecuteBashCommand(command)) | ||
} | ||
|
||
} else if len(arg) == 1 { | ||
|
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.
I think a blank line will still be helpful if it's blank
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.
there is already new line
kubectl-rook-ceph/pkg/logging/log.go
Lines 26 to 32 in df1ab8b
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.
oh right, I overlooked it, thanks