Method: Bosh::Director::DeploymentPlan::JobAvailabilityZoneParser#check_contains

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

#check_contains(az_names, networks, job) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/bosh/director/deployment_plan/job_availability_zone_parser.rb', line 15

def check_contains(az_names, networks, job)
  networks.each do |network|
    unless network.has_azs?(az_names)
      raise JobNetworkMissingRequiredAvailabilityZone,
        "Instance group '#{job.name}' must specify availability zone that matches availability zones of network '#{network.name}'"
    end
  end
end