1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-06 18:47:19 +01:00
Files
installer/pkg/validate/method.go

17 lines
289 B
Go

package validate
import "os"
// IsAgentBasedInstallation determines whether we are using the 'agent'
// subcommand to install
func IsAgentBasedInstallation() bool {
if len(os.Args) > 1 {
for _, arg := range os.Args {
if arg == "agent" {
return true
}
}
}
return false
}