Skip to content

Commit

Permalink
fix(titus): calling non-existant method (#3797)
Browse files Browse the repository at this point in the history
when Titus isn't available in a region instead of giving the appropriate error messge we get:

```
No signature of method: com.netflix.spinnaker.clouddriver.deploy.DescriptionValidationErrors.rejectValue() is applicable for argument types: (String, String, String, String) values: [region, titusDeployDescription.region.not.configured, us-east-1 , ...] Possible solutions: rejectValue(java.lang.String, java.lang.String, java.lang.String), rejectValue(java.lang.String, java.lang.String, [Ljava.lang.Object;, java.lang.String), rejectValue(java.lang.String, java.lang.String)
```
  • Loading branch information
marchello2000 authored Jun 19, 2019
1 parent b696055 commit 98beae0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class TitusDeployDescriptionValidator extends AbstractTitusDescriptionValidatorS

def credentials = getAccountCredentials(description?.credentials?.name)
if (credentials && !((NetflixTitusCredentials) credentials).regions.name.contains(description.region)) {
errors.rejectValue "region", "titusDeployDescription.region.not.configured", description.region, "Region not configured"
errors.rejectValue "region", "titusDeployDescription.region.not.configured", "Region '${description.region}' not configured"
}

if (!description.application) {
Expand Down

0 comments on commit 98beae0

Please sign in to comment.