Skip to content

Added permissions scw info #195

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

Merged
merged 2 commits into from
Sep 28, 2015
Merged

Added permissions scw info #195

merged 2 commits into from
Sep 28, 2015

Conversation

QuentinPerez
Copy link
Contributor

}
fmt.Fprintln(ctx.Stdout, "Permissions:")
for _, service := range permissions.Permissions {
for key, service_name := range service {

Choose a reason for hiding this comment

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

don't use underscores in Go names; range var service_name should be serviceName

}
}
fmt.Fprintf(ctx.Stdout, "\n")
Copy link
Contributor

Choose a reason for hiding this comment

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

why this change ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To add a space between the two sections

Copy link
Contributor

Choose a reason for hiding this comment

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

@moul
Copy link
Contributor

moul commented Sep 28, 2015

LGTM

@@ -59,9 +59,10 @@ func RunInfo(ctx CommandContext, args InfoArgs) error {
if err != nil {
return err
} else {
fmt.Fprintf(ctx.Stdout, " [%d] %s\n", id, fingerprint)
fmt.Fprintf(ctx.Stdout, " [%d] %s", id, fingerprint)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you removed the \n ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because fingerprint has already a \n

Copy link
Contributor

Choose a reason for hiding this comment

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

ok LGTM

QuentinPerez pushed a commit that referenced this pull request Sep 28, 2015
@QuentinPerez QuentinPerez merged commit 132048d into scaleway:master Sep 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants