-
Notifications
You must be signed in to change notification settings - Fork 87
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
Issue-231 Fixed no Instances found #246
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: kitarp29 <kitarpsinghrajpoot@gmail.com>
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.
Hi @kitarp29 thanks for the PR, but more than this you can return a message before the loop like in the line
cli/cmd/instance/instance_list.go
Line 60 in cc8f88e
if len(instance) == 0 {
utility.Info("We don't find any instance in the region %s", client.Region)
os.Exit(1)
}
Yes @alejandrojnm as I mentioned in my first message I knew that the rest of the code did not make sense to execute if |
@kitarp29 thanks for the PR :) |
Signed-off-by: kitarp29 <kitarpsinghrajpoot@gmail.com>
We need to keep a standard in all the code, we can use |
Good point @alejandrojnm . We should move to a well-maintained logging package at some point like @kitarp29 pointed out in this issue. #233 |
Signed-off-by: kitarp29 <kitarpsinghrajpoot@gmail.com>
@alejandrojnm Do we want to hold this off until we resolve the logging issue? |
Signed-off-by: kitarp29 <kitarpsinghrajpoot@gmail.com>
civo <resourcetype> ls
should show output even if empty #231Hi @kaihoffman this is an easy and quick fix for the issue.
I wanted to break the loop in the length of the array is zero.
But I am concerned about the
common.OutputFormat
condition .Please review and let me know of the changes.
Signed-off-by: kitarp29 kitarpsinghrajpoot@gmail.com