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
180180 return NoPrintStatusRule , fmt .Errorf ("coordinates are read-only" )
181181 }
182182 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+ }
184189 return NoPrintStatusRule , nil
185190 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+ }
187197 return NoPrintStatusRule , nil
188198 case "chunk-size" :
189199 {
You can’t perform that action at this time.
0 commit comments