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:
Kota Kanbe
2021-02-19 06:42:22 +09:00
committed by GitHub
parent aeaf308679
commit e3c27e1817
4 changed files with 459 additions and 121 deletions

View File

@@ -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),