Fix casing for initialism

This commit is contained in:
Brandon Bodnar 2019-01-31 16:59:42 -06:00
parent 23617f287f
commit 4f9367e690
2 changed files with 4 additions and 4 deletions

View File

@ -100,7 +100,7 @@ type MigrationContext struct {
CliUser string
CliPassword string
UseTLS bool
TlsCACertificate string
TLSCACertificate string
CliMasterUser string
CliMasterPassword string
@ -699,7 +699,7 @@ func (this *MigrationContext) ApplyCredentials() {
func (this *MigrationContext) SetupTLS() error {
if this.UseTLS {
return this.InspectorConnectionConfig.UseTLS(this.TlsCACertificate)
return this.InspectorConnectionConfig.UseTLS(this.TLSCACertificate)
}
return nil
}

View File

@ -56,7 +56,7 @@ func main() {
askPass := flag.Bool("ask-pass", false, "prompt for MySQL password")
flag.BoolVar(&migrationContext.UseTLS, "ssl", false, "Enable SSL encrypted connections to MySQL")
flag.StringVar(&migrationContext.TlsCACertificate, "ssl-ca", "", "CA certificate in PEM format for TLS connections. Requires --ssl")
flag.StringVar(&migrationContext.TLSCACertificate, "ssl-ca", "", "CA certificate in PEM format for TLS connections. Requires --ssl")
flag.StringVar(&migrationContext.DatabaseName, "database", "", "database name (mandatory)")
flag.StringVar(&migrationContext.OriginalTableName, "table", "", "table name (mandatory)")
@ -198,7 +198,7 @@ func main() {
if migrationContext.CliMasterPassword != "" && migrationContext.AssumeMasterHostname == "" {
log.Fatalf("--master-password requires --assume-master-host")
}
if migrationContext.TlsCACertificate != "" && !migrationContext.UseTLS {
if migrationContext.TLSCACertificate != "" && !migrationContext.UseTLS {
log.Fatalf("--ssl-ca requires --ssl")
}
if *replicationLagQuery != "" {