cloudfoundry/dea_ng — pull request #117 by julz (2014-04-07 15:15:05+00:00)
Title: Expose available_disk in stager advertisement

Cloud controller already makes sure it only attempts to start (as opposed to stage) on DEAs with enough disk, but it doesn't currently check whether stagers have enough disk before staging. This results in errors when a CC attempts to start on a DEA that's out of disk, which then refuses the request. This change exposes available_disk in the staging advertisement so that CC can know if a staging request is going to fail before it sends it to the DEA (exactly as already happens for start requests).