mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-06 12:47:44 +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)
|
credentials = append(credentials, password)
|
||||||
}
|
}
|
||||||
|
|
||||||
for host := 0; host < len(args); host++ {
|
for index, endpoint := range args {
|
||||||
endpoint := args[host]
|
|
||||||
outputDir := path.Join(output, endpoint)
|
outputDir := path.Join(output, endpoint)
|
||||||
|
|
||||||
if _, err := os.Stat(outputDir); errors.Is(err, os.ErrNotExist) {
|
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)
|
orgErr := va.RunVACmdLive(endpoint, password, TroubleshootingScript)
|
||||||
if orgErr != nil {
|
if orgErr != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user