Method: Bosh::Director::DeploymentPlan::JobAvailabilityZoneParser#parse
- Defined in:
- lib/bosh/director/deployment_plan/job_availability_zone_parser.rb
#parse(job_spec, job, deployment, networks) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/bosh/director/deployment_plan/job_availability_zone_parser.rb', line 6 def parse(job_spec, job, deployment, networks) az_names = safe_property(job_spec, 'azs', class: Array, optional: true) check_contains(az_names, networks, job) return nil if az_names.nil? check_validity_of(az_names, job.name) look_up_from_deployment(az_names, deployment, job.name) end |