File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -180,10 +180,20 @@ help # This message
180
180
return NoPrintStatusRule , fmt .Errorf ("coordinates are read-only" )
181
181
}
182
182
case "applier" :
183
- fmt .Fprintf (writer , "Hostname: %s\n " , this .migrationContext .GetApplierHostname ())
183
+ if this .migrationContext .ApplierConnectionConfig != nil && this .migrationContext .ApplierConnectionConfig .ImpliedKey != nil {
184
+ fmt .Fprintf (writer , "Host: %s, Version: %s\n " ,
185
+ this .migrationContext .ApplierConnectionConfig .ImpliedKey .String (),
186
+ this .migrationContext .ApplierMySQLVersion ,
187
+ )
188
+ }
184
189
return NoPrintStatusRule , nil
185
190
case "inspector" :
186
- fmt .Fprintf (writer , "Hostname: %s\n " , this .migrationContext .GetInspectorHostname ())
191
+ if this .migrationContext .InspectorConnectionConfig != nil && this .migrationContext .InspectorConnectionConfig .ImpliedKey != nil {
192
+ fmt .Fprintf (writer , "Host: %s, Version: %s\n " ,
193
+ this .migrationContext .InspectorConnectionConfig .ImpliedKey .String (),
194
+ this .migrationContext .InspectorMySQLVersion ,
195
+ )
196
+ }
187
197
return NoPrintStatusRule , nil
188
198
case "chunk-size" :
189
199
{
You can’t perform that action at this time.
0 commit comments