diff --git a/traffic_ops/traffic_ops_golang/trafficvault/backends/postgres/postgres.go b/traffic_ops/traffic_ops_golang/trafficvault/backends/postgres/postgres.go index f537a8ad55..b1bdc1b394 100644 --- a/traffic_ops/traffic_ops_golang/trafficvault/backends/postgres/postgres.go +++ b/traffic_ops/traffic_ops_golang/trafficvault/backends/postgres/postgres.go @@ -180,7 +180,7 @@ func (p *Postgres) GetExpirationInformation(tx *sql.Tx, ctx context.Context, day fedMap[fedString] = true } - inactiveQuery := "SELECT xml_id FROM deliveryservice WHERE NOT active" + inactiveQuery := "SELECT xml_id FROM deliveryservice WHERE active = 'INACTIVE' OR active = 'PRIMED'" iaRows, err := tx.Query(inactiveQuery) if err != nil { return []tc.SSLKeyExpirationInformation{}, err