fix(saas): Don't overwrite config.toml if UUID already set (#1180)
* fix(saas): Don't overwrite config.toml if UUID already set * add a test case
This commit is contained in:
@@ -114,7 +114,7 @@ func (w Writer) Write(rs ...models.ScanResult) error {
|
||||
if err != nil {
|
||||
return xerrors.Errorf("Failed to Marshal to JSON: %w", err)
|
||||
}
|
||||
util.Log.Infof("Uploading...: ServerName: %s, ", r.ServerName)
|
||||
util.Log.Infof("Uploading... %s", r.FormatServerName())
|
||||
s3Key := renameKeyName(r.ServerUUID, r.Container)
|
||||
putObjectInput := &s3.PutObjectInput{
|
||||
Bucket: aws.String(tempCredential.S3Bucket),
|
||||
|
||||
Reference in New Issue
Block a user