Add file for non-Linux placeholder.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// + build linux
|
||||
// +build linux
|
||||
|
||||
package child
|
||||
|
||||
|
||||
14
internal/app/wwctl/container/exec/child/non-Linux.go
Normal file
14
internal/app/wwctl/container/exec/child/non-Linux.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// +build !linux
|
||||
|
||||
package child
|
||||
|
||||
import (
|
||||
"github.com/hpcng/warewulf/internal/pkg/wwlog"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
wwlog.Printf(wwlog.ERROR, "This command does not work on non-Linux hosts\n")
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user