mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Config: Move Portal flag to ClientConfig struct
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -31,7 +31,7 @@ var ClusterNodesRemoveCommand = &cli.Command{
|
||||
|
||||
func clusterNodesRemoveAction(ctx *cli.Context) error {
|
||||
return CallWithDependencies(ctx, func(conf *config.Config) error {
|
||||
if !conf.IsPortal() {
|
||||
if !conf.Portal() {
|
||||
return cli.Exit(fmt.Errorf("node delete is only available on a Portal node"), 2)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user