don't resolve ca cert path if empty string
@@ -123,9 +123,11 @@ func (o *loginOptions) Run() error {
return err
}
+ if o.CaCert != "" {
if certAbs, err := filepath.Abs(o.CaCert); err == nil {
o.CaCert = certAbs
}
+ }
if ctrlUrl.Path == "" {
host = util.EdgeControllerGetManagementApiBasePath(host, o.CaCert)
