Skip to content

Commit

Permalink
Fix for missing properties in spconfig response. Fix additional json …
Browse files Browse the repository at this point in the history
…in save name
  • Loading branch information
tyler-mairose-sp committed Oct 8, 2024
1 parent b10551d commit 4bca547
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmd/spconfig/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ func newDownloadCommand() *cobra.Command {

for _, jobId := range importIDs {
log.Info("Checking Import Job", "JobID", jobId)
err := spconfig.DownloadImport(*apiClient, jobId, "spconfig-import-"+jobId+".json", folderPath)
err := spconfig.DownloadImport(*apiClient, jobId, "spconfig-import-"+jobId, folderPath)
if err != nil {
return err
}
}

for _, jobId := range exportIDs {
log.Info("Checking Export Job", "JobID", jobId)
err := spconfig.DownloadExport(*apiClient, jobId, "spconfig-export-"+jobId+".json", folderPath)
err := spconfig.DownloadExport(*apiClient, jobId, "spconfig-export-"+jobId, folderPath)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/mrz1836/go-sanitize v1.3.1
github.com/olekukonko/tablewriter v0.0.5
github.com/pkg/sftp v1.13.6
github.com/sailpoint-oss/golang-sdk/v2 v2.1.11
github.com/sailpoint-oss/golang-sdk/v2 v2.1.13
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.7.0
github.com/spf13/pflag v1.0.5
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,8 @@ github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6g
github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ=
github.com/sahilm/fuzzy v0.1.0 h1:FzWGaw2Opqyu+794ZQ9SYifWv2EIXpwP4q8dY1kDAwI=
github.com/sahilm/fuzzy v0.1.0/go.mod h1:VFvziUEIMCrT6A6tw2RFIXPXXmzXbOsSHF0DOI8ZK9Y=
github.com/sailpoint-oss/golang-sdk/v2 v2.1.10 h1:jC9tBIj35GBk2F10njC55n2+efCdCPNo9C+mLzlFiq0=
github.com/sailpoint-oss/golang-sdk/v2 v2.1.10/go.mod h1:hZdRdJzkrEzdiiVqzblaCdYxGM9rKXMC0vhIom+WBpc=
github.com/sailpoint-oss/golang-sdk/v2 v2.1.11 h1:zbi5/j/k17VqigMTkvySm2B+IlZeHTXt6VBpAqQjBys=
github.com/sailpoint-oss/golang-sdk/v2 v2.1.11/go.mod h1:hZdRdJzkrEzdiiVqzblaCdYxGM9rKXMC0vhIom+WBpc=
github.com/sailpoint-oss/golang-sdk/v2 v2.1.13 h1:tEWRYCdpQc+hVRKKd1bILXr5PwAu5JfJCOkncJLXsmI=
github.com/sailpoint-oss/golang-sdk/v2 v2.1.13/go.mod h1:hZdRdJzkrEzdiiVqzblaCdYxGM9rKXMC0vhIom+WBpc=
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 h1:JIAuq3EEf9cgbU6AtGPK4CTG3Zf6CKMNqf0MHTggAUA=
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog=
github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo=
Expand Down

0 comments on commit 4bca547

Please sign in to comment.