mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-06 04:21:15 +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 {
|
if wait {
|
||||||
log.Warn("Waiting for export task to complete")
|
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
|
return nil
|
||||||
|
|||||||
@@ -47,7 +47,10 @@ func newImportCommand() *cobra.Command {
|
|||||||
|
|
||||||
if wait {
|
if wait {
|
||||||
log.Warn("Waiting for import task to complete")
|
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
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user