cloudfoundry / java-buildpack-metric-writer

Apache License 2.0
2 stars 4 forks source link

Support cf tasks which where cf.instance.index is null #5

Closed xyloman closed 5 years ago

xyloman commented 5 years ago

After upgrading to buildpack v4.21 cf java applications which execute tasks via cf run-task fail to start because cf.instance.index property is not.

This PR includes updates to not require cf.instance.index to be set as well adding test coverage for the use case where the cf instance index is null.

Fixes cloudfoundry/java-buildpack#747

cfdreddbot commented 5 years ago

:x: Hey xyloman!

All pull request submitters and commit authors must have a Contributor License Agreement (CLA). Click here for details on the CLA process.

The following github user @xyloman is not covered by a CLA.

After the CLA process is complete, this pull request will need to be closed & reopened. DreddBot will then validate the CLA(s).