mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02:00
cmd/cli: do not validate if custom config is empty
Avoiding useless warnings when doing rules validation.
This commit is contained in:
@@ -1839,6 +1839,12 @@ func doValidateCdRemoteConfig(cdUID string, fatal bool) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// return earlier if there's no custom config.
|
||||||
|
if rc.Ctrld.CustomConfig == "" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// validateCdRemoteConfig clobbers v, saving it here to restore later.
|
// validateCdRemoteConfig clobbers v, saving it here to restore later.
|
||||||
oldV := v
|
oldV := v
|
||||||
var cfgErr error
|
var cfgErr error
|
||||||
|
|||||||
Reference in New Issue
Block a user