Skip to content

Commit

Permalink
fix(cf): make Deploy Service pipeline stage work again (spinnaker#6677)
Browse files Browse the repository at this point in the history
Co-Authored-By: Stu Pollock <spollock@pivotal.io>
  • Loading branch information
stuart-pollock authored and jkschneider committed Mar 13, 2019
1 parent 2ba9f30 commit 8f866ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class CloudfoundryDeployServiceStageConfig extends React.Component<

constructor(props: IStageConfigProps) {
super(props);
this.props.stage.cloudProvider = 'cloudfoundry';
this.state = {
accounts: [],
regions: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ PipelineConfigValidator.registerValidator(
if (sourceType(serviceInput, get(stage, 'userProvided')) !== validationConfig.manifestSource) {
return null;
}
const content: any = get(serviceInput, validationConfig.fieldName);
const manifestSource: any = get(serviceInput, validationConfig.manifestSource);
const content: any = get(manifestSource, validationConfig.fieldName);
const fieldLabel = validationConfig.fieldLabel || upperFirst(validationConfig.fieldName);
return content ? null : `<strong>${fieldLabel}</strong> is a required field for the Deploy Service stage.`;
}
Expand Down

0 comments on commit 8f866ff

Please sign in to comment.