mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-06 12:47:44 +00:00
[Bug] Resolved dropped errors on Import/Export download
This commit is contained in:
@@ -60,7 +60,10 @@ func newExportCommand() *cobra.Command {
|
||||
|
||||
if wait {
|
||||
log.Warn("Waiting for export task to complete")
|
||||
spconfig.DownloadExport(*apiClient, job.JobId, "spconfig-export-"+job.JobId+".json", folderPath)
|
||||
downloadErr := spconfig.DownloadExport(*apiClient, job.JobId, "spconfig-export-"+job.JobId, folderPath)
|
||||
if downloadErr != nil {
|
||||
return downloadErr
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
@@ -47,7 +47,10 @@ func newImportCommand() *cobra.Command {
|
||||
|
||||
if wait {
|
||||
log.Warn("Waiting for import task to complete")
|
||||
spconfig.DownloadImport(*apiClient, job.JobId, "spconfig-import-"+job.JobId+".json", folderPath)
|
||||
downloadErr := spconfig.DownloadImport(*apiClient, job.JobId, "spconfig-import-"+job.JobId, folderPath)
|
||||
if downloadErr != nil {
|
||||
return downloadErr
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user