diff --git a/cmd/director.go b/cmd/director.go index 3c5e23930..9558221c9 100644 --- a/cmd/director.go +++ b/cmd/director.go @@ -26,7 +26,7 @@ import ( var ( directorCmd = &cobra.Command{ - Use: "director", + Use: "director", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { err := config.InitServer() return err diff --git a/cmd/namespace_registry.go b/cmd/namespace_registry.go index 076e4a57b..347d86125 100644 --- a/cmd/namespace_registry.go +++ b/cmd/namespace_registry.go @@ -25,7 +25,7 @@ import ( var ( namespaceRegistryCmd = &cobra.Command{ - Use: "registry", + Use: "registry", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { err := config.InitServer() return err diff --git a/cmd/origin_serve.go b/cmd/origin_serve.go index 78f1a7004..9a162df51 100644 --- a/cmd/origin_serve.go +++ b/cmd/origin_serve.go @@ -96,7 +96,6 @@ type ( } ) - func checkXrootdEnv() error { uid, err := config.GetDaemonUID() if err != nil {