Skip to content

Commit 4f4a897

Browse files
committed
dont stringify prefix for vip networks
1 parent 2cada30 commit 4f4a897

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bosh-director/lib/bosh/director/deployment_plan/vip_network_subnet.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def self.parse(subnet_spec, network_name, azs)
2727
def initialize(static_ips, availability_zone_names, prefix)
2828
@static_ips = static_ips
2929
@availability_zone_names = availability_zone_names
30-
@prefix = prefix.to_s
30+
@prefix = prefix
3131
end
3232

3333
def is_reservable?(ip)

src/bosh-director/spec/unit/bosh/director/deployment_plan/network_planner/reservation_reconciler_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ module Bosh::Director::DeploymentPlan
210210
end
211211

212212
context 'when the existing ip is part of a vip static network but the desired network is a global vip network' do
213-
let(:network) { VipNetwork.new('static-vip-network', nil, [], '32', per_spec_logger) }
213+
let(:network) { VipNetwork.new('static-vip-network', nil, [], 32, per_spec_logger) }
214214
let(:network_spec) do
215215
{
216216
'name' => 'global-vip-network',

0 commit comments

Comments
 (0)