Skip to content

Commit ee80bcb

Browse files
authored
Merge pull request #1726 from afumagalli98/1719
Return empty string if no psql migrability data
2 parents 7f17bbf + 85971b0 commit ee80bcb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api-service/service/oracle_database_migrability_to_postgres.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (as *APIService) GetOraclePsqlMigrabilitiesSemaphore(hostname, dbname strin
2929
return "", err
3030
}
3131

32-
color := "red"
32+
color := ""
3333

3434
for _, migrability := range psqlMigrabilities {
3535
if migrability.Metric != nil && *migrability.Metric == "PLSQL LINES" {
@@ -38,6 +38,8 @@ func (as *APIService) GetOraclePsqlMigrabilitiesSemaphore(hostname, dbname strin
3838
color = "green"
3939
case migrability.Count >= 1000 && migrability.Count <= 10000:
4040
color = "yellow"
41+
case migrability.Count > 10000:
42+
color = "red"
4143
}
4244
}
4345
}

0 commit comments

Comments
 (0)