Skip to content

Commit 81dc816

Browse files
authored
CLOUDP-183839: Atlas Cli liveMigrations create doesn't parse output correctly after creating (#2008)
1 parent e7417ba commit 81dc816

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/atlascli/command/atlas-liveMigrations-create.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ If the command succeeds, the CLI returns output similar to the following sample.
117117

118118
.. code-block::
119119

120-
ID PROJECT ID SOURCE PROJECT ID STATUS
121-
<Id> <Destination.GroupId> <Source.GroupId> <Status>
120+
ID LAGTIME READY FOR CUTOVER STATUS
121+
<Id> <LagTimeSeconds> <ReadyForCutover> <Status>
122122

docs/mongocli/command/mongocli-atlas-liveMigrations-create.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ If the command succeeds, the CLI returns output similar to the following sample.
117117

118118
.. code-block::
119119

120-
ID PROJECT ID SOURCE PROJECT ID STATUS
121-
<Id> <Destination.GroupId> <Source.GroupId> <Status>
120+
ID LAGTIME READY FOR CUTOVER STATUS
121+
<Id> <LagTimeSeconds> <ReadyForCutover> <Status>
122122

internal/cli/atlas/livemigrations/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ func (opts *CreateOpts) initStore(ctx context.Context) func() error {
3636
}
3737
}
3838

39-
var createTemplate = `ID PROJECT ID SOURCE PROJECT ID STATUS
40-
{{.Id}} {{.Destination.GroupId}} {{.Source.GroupId}} {{.Status}}`
39+
var createTemplate = `ID LAGTIME READY FOR CUTOVER STATUS
40+
{{.Id}} {{.LagTimeSeconds}} {{.ReadyForCutover}} {{.Status}}`
4141

4242
func (opts *CreateOpts) Run() error {
4343
if err := opts.Prompt(); err != nil {

internal/cli/atlas/livemigrations/describe.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ func (opts *DescribeOpts) initStore(ctx context.Context) func() error {
4040
}
4141
}
4242

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

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

0 commit comments

Comments
 (0)