mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-06 04:21:15 +00:00
Update troubleshoot.go
This commit is contained in:
@@ -36,8 +36,7 @@ func NewTroubleshootCmd(term terminal.Terminal) *cobra.Command {
|
||||
credentials = append(credentials, password)
|
||||
}
|
||||
|
||||
for host := 0; host < len(args); host++ {
|
||||
endpoint := args[host]
|
||||
for index, endpoint := range args {
|
||||
outputDir := path.Join(output, endpoint)
|
||||
|
||||
if _, err := os.Stat(outputDir); errors.Is(err, os.ErrNotExist) {
|
||||
@@ -47,7 +46,7 @@ func NewTroubleshootCmd(term terminal.Terminal) *cobra.Command {
|
||||
}
|
||||
}
|
||||
|
||||
password := credentials[host]
|
||||
password := credentials[index]
|
||||
|
||||
orgErr := va.RunVACmdLive(endpoint, password, TroubleshootingScript)
|
||||
if orgErr != nil {
|
||||
|
||||
Reference in New Issue
Block a user