mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
ADd secure, remove username and password
Signed-off-by: Ben McDonald <ben.mcdonald@hpe.com>
This commit is contained in:
parent
4cfd48da63
commit
488ad241f6
2 changed files with 10 additions and 12 deletions
|
|
@ -24,6 +24,7 @@ var (
|
|||
targetHosts [][]string
|
||||
disableProbing bool
|
||||
disableCache bool
|
||||
insecure bool
|
||||
)
|
||||
|
||||
// The `scan` command is usually the first step to using the CLI tool.
|
||||
|
|
@ -138,8 +139,7 @@ var ScanCmd = &cobra.Command{
|
|||
DisableProbing: disableProbing,
|
||||
Verbose: verbose,
|
||||
Debug: debug,
|
||||
Username: username,
|
||||
Password: password,
|
||||
Insecure: insecure,
|
||||
})
|
||||
|
||||
if len(foundAssets) > 0 && debug {
|
||||
|
|
@ -179,6 +179,7 @@ func init() {
|
|||
ScanCmd.Flags().IPMaskVar(&subnetMask, "subnet-mask", net.IPv4Mask(255, 255, 255, 0), "Set the default subnet mask to use for with all subnets not using CIDR notation.")
|
||||
ScanCmd.Flags().BoolVar(&disableProbing, "disable-probing", false, "Disable probing found assets for Redfish service(s) running on BMC nodes")
|
||||
ScanCmd.Flags().BoolVar(&disableCache, "disable-cache", false, "Disable saving found assets to a cache database specified with 'cache' flag")
|
||||
ScanCmd.Flags().BoolVar(&insecure, "insecure", false, "Skip TLS certificate verification during probe")
|
||||
|
||||
checkBindFlagError(viper.BindPFlag("scan.ports", ScanCmd.Flags().Lookup("port")))
|
||||
checkBindFlagError(viper.BindPFlag("scan.scheme", ScanCmd.Flags().Lookup("scheme")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue