Skip to content

Commit aaa05b5

Browse files
Added .json to download filePath
1 parent a12e989 commit aaa05b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/spconfig/spconfig.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func DownloadExport(apiClient sailpoint.APIClient, jobId string, fileName string
4444
if err != nil {
4545
return err
4646
}
47-
log.Info("Saving export data", "filePath", path.Join(folderPath, fileName))
47+
log.Info("Saving export data", "filePath", path.Join(folderPath, fileName+".json"))
4848
err = output.SaveJSONFile(exportData, fileName, folderPath)
4949
if err != nil {
5050
return err
@@ -74,11 +74,12 @@ func DownloadImport(apiClient sailpoint.APIClient, jobId string, fileName string
7474
} else {
7575
switch response.Status {
7676
case "COMPLETE":
77-
color.Green("Downloading Import Data")
77+
log.Info("Job Complete")
7878
importData, _, err := apiClient.Beta.SPConfigAPI.GetSpConfigImport(context.TODO(), jobId).Execute()
7979
if err != nil {
8080
return err
8181
}
82+
log.Info("Saving import data", "filePath", path.Join(folderPath, fileName+".json"))
8283
err = output.SaveJSONFile(importData, fileName, folderPath)
8384
if err != nil {
8485
return err

0 commit comments

Comments
 (0)