Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/atlascli/command/atlas-liveMigrations-create.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@ If the command succeeds, the CLI returns output similar to the following sample.

.. code-block::

ID PROJECT ID SOURCE PROJECT ID STATUS
<Id> <Destination.GroupId> <Source.GroupId> <Status>
ID LAGTIME READY FOR CUTOVER STATUS
<Id> <LagTimeSeconds> <ReadyForCutover> <Status>

Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@ If the command succeeds, the CLI returns output similar to the following sample.

.. code-block::

ID PROJECT ID SOURCE PROJECT ID STATUS
<Id> <Destination.GroupId> <Source.GroupId> <Status>
ID LAGTIME READY FOR CUTOVER STATUS
<Id> <LagTimeSeconds> <ReadyForCutover> <Status>

4 changes: 2 additions & 2 deletions internal/cli/atlas/livemigrations/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func (opts *CreateOpts) initStore(ctx context.Context) func() error {
}
}

var createTemplate = `ID PROJECT ID SOURCE PROJECT ID STATUS
{{.Id}} {{.Destination.GroupId}} {{.Source.GroupId}} {{.Status}}`
var createTemplate = `ID LAGTIME READY FOR CUTOVER STATUS
{{.Id}} {{.LagTimeSeconds}} {{.ReadyForCutover}} {{.Status}}`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the template as the API does not send Source and Destination in the response object.


func (opts *CreateOpts) Run() error {
if err := opts.Prompt(); err != nil {
Expand Down
4 changes: 2 additions & 2 deletions internal/cli/atlas/livemigrations/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ func (opts *DescribeOpts) initStore(ctx context.Context) func() error {
}
}

var describeTemplate = `ID PROJECT ID SOURCE PROJECT ID STATUS
{{.Id}} {{.Destination.GroupId}} {{.Source.GroupId}} {{.Status}}`
var describeTemplate = `ID LAGTIME READY FOR CUTOVER STATUS
{{.Id}} {{.LagTimeSeconds}} {{.ReadyForCutover}} {{.Status}}`

func (opts *DescribeOpts) Run() error {
r, err := opts.store.LiveMigrationDescribe(opts.ConfigProjectID(), opts.liveMigrationID)
Expand Down