mirror of https://github.com/docker/docs.git
Merge pull request #309 from aluzzardi/tls-flags-fix
Abort if --tlscert, --tlskey or --tlscacert are used without --tls.
This commit is contained in:
commit
b99bcb0ee1
|
@ -77,6 +77,12 @@ func manage(c *cli.Context) {
|
|||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
} else {
|
||||
// Otherwise, if neither --tls nor --tlsverify are specified, abort if
|
||||
// the other flags are passed as they will be ignored.
|
||||
if c.IsSet("tlscert") || c.IsSet("tlskey") || c.IsSet("tlscacert") {
|
||||
log.Fatal("--tlscert, --tlskey and --tlscacert require the use of either --tls or --tlsverify")
|
||||
}
|
||||
}
|
||||
|
||||
store := state.NewStore(path.Join(c.String("rootdir"), "state"))
|
||||
|
|
Loading…
Reference in New Issue