Skip to content

Commit

Permalink
atlas/login and push: removed requirement of json output (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
dorav and dorav committed Sep 18, 2023
1 parent aaccb3b commit 8773231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atlasexec/atlas.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (c *Client) Login(ctx context.Context, params *LoginParams) error {
if params.Token == "" {
return errors.New("token cannot be empty")
}
_, err := c.runCommand(ctx, []string{"login", "--token", params.Token}, validJSON)
_, err := c.runCommand(ctx, []string{"login", "--token", params.Token})
return err
}

Expand Down Expand Up @@ -185,7 +185,7 @@ func (c *Client) MigratePush(ctx context.Context, params *MigratePushParams) (st
} else {
args = append(args, params.Name)
}
resp, err := stringVal(c.runCommand(ctx, args, validJSON))
resp, err := stringVal(c.runCommand(ctx, args))
return strings.TrimSpace(resp), err
}

Expand Down

0 comments on commit 8773231

Please sign in to comment.