Skip to content

Commit

Permalink
Minor changes added
Browse files Browse the repository at this point in the history
Signed-off-by: sonali wale <sonali.wale@progress.com>
  • Loading branch information
sonali wale committed Apr 1, 2022
1 parent eaceaff commit ddff3d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/infra-proxy-service/migrations/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ func (s *MigrationServer) CreateBackup(ctx context.Context, req *request.CreateB
// Create data for org file org.json
orgJsonObj := pipeline.OrgJson{}
orgJsonObj.Name = req.OrgId
orgJsonObj.FullName = req.OrgId + time.Now().String()
orgJsonObj.FullName = "f_" + req.OrgId
orgJson, err := json.Marshal(orgJsonObj)
if err != nil {
log.Errorf("Failed to marshal %s ", err.Error())
Expand Down Expand Up @@ -477,7 +477,7 @@ func (s *MigrationServer) CreateBackup(ctx context.Context, req *request.CreateB
// Write server users file key_dump.json
keyDumpJson, err := json.Marshal(serverUsers)
if err != nil {
log.Errorf("Failed to marshal %s", err.Error())
log.Errorf("Failed to marshal server users %s", err.Error())
return nil, err
}
err = writeFile(keyDumpJsonPath, keyDumpJson)
Expand All @@ -489,7 +489,7 @@ func (s *MigrationServer) CreateBackup(ctx context.Context, req *request.CreateB
// Write org users file members.json
membersJson, err := json.Marshal(members)
if err != nil {
log.Errorf("Failed to marshal %s", err.Error())
log.Errorf("Failed to marshal org users%s", err.Error())
return nil, err
}
err = writeFile(membersJsonPath, membersJson)
Expand All @@ -501,7 +501,7 @@ func (s *MigrationServer) CreateBackup(ctx context.Context, req *request.CreateB
// Write org admins file admins.json
adminsJson, err := json.Marshal(admins)
if err != nil {
log.Errorf("Failed to marshal %s", err.Error())
log.Errorf("Failed to marshal org admins %s", err.Error())
return nil, err
}
err = writeFile(adminsJsonPath, adminsJson)
Expand Down

0 comments on commit ddff3d6

Please sign in to comment.