Method: Bosh::Director::DeploymentPlan::JobAvailabilityZoneParser#look_up_from_deployment

Defined in:
lib/bosh/director/deployment_plan/job_availability_zone_parser.rb

#look_up_from_deployment(az_names, deployment, job_name) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/bosh/director/deployment_plan/job_availability_zone_parser.rb', line 36

def look_up_from_deployment(az_names, deployment, job_name)
  az_names.map do |name|
    az = deployment.availability_zone(name)
    if az.nil?
      raise JobUnknownAvailabilityZone, "Instance group '#{job_name}' references unknown availability zone '#{name}'"
    end
    az
  end
end