Skip to content

Commit

Permalink
Add property to deployment props that represents the unversioned (#977)
Browse files Browse the repository at this point in the history
application name

Relates to: #953
  • Loading branch information
chrisjs authored Sep 23, 2020
1 parent 9bb15af commit 5cdbcbb
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* @author Ilayaperumal Gopinathan
*/
public class AppDeploymentRequestFactory {

private static final String APP_NAME_PROPERY = AppDeployer.PREFIX + "appName";
private static final Logger logger = LoggerFactory.getLogger(AppDeploymentRequestFactory.class);

private final DelegatingResourceLoader delegatingResourceLoader;
Expand Down Expand Up @@ -112,9 +112,9 @@ public AppDeploymentRequest createAppDeploymentRequest(SpringCloudDeployerApplic
logger.debug("Defaulting spring.cloud.deployer.group=" + releaseName);
deploymentProperties.put(AppDeployer.GROUP_PROPERTY_KEY, releaseName);
}
AppDeploymentRequest appDeploymentRequest = new AppDeploymentRequest(appDefinition, resource,
deploymentProperties);
return appDeploymentRequest;
}

deploymentProperties.put(APP_NAME_PROPERY, applicationSpec.getApplicationName());

return new AppDeploymentRequest(appDefinition, resource, deploymentProperties);
}
}

0 comments on commit 5cdbcbb

Please sign in to comment.