Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit 0b35016

Browse files
committed
Remove select of variables starting with BP
1 parent 3502b17 commit 0b35016

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/cloud_controller/kpack/stager.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def image_resource(staging_details)
7878
},
7979
build: {
8080
env: staging_details.environment_variables.to_a.
81-
select{ | key, value | key =~ /^BP[A-Z]{0,1}_/ }.
8281
map{ | key , value | {name: key, value: value.to_s() } }
8382
}
8483
}

spec/unit/lib/cloud_controller/kpack/stager_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Kpack
1111
)
1212
}
1313
let(:package) { VCAP::CloudController::PackageModel.make }
14-
let(:environment_variables) { { 'BP_JAVA_VERSION' => '8.*', 'JAVA_OPTS' => 'invalid', 'BPL_HEAD_ROOM' => 0} }
14+
let(:environment_variables) { { 'BP_JAVA_VERSION' => '8.*', 'BPL_HEAD_ROOM' => 0} }
1515
let(:staging_memory_in_mb) { 1024 }
1616
let(:staging_disk_in_mb) { 1024 }
1717
let(:blobstore_url_generator) do
@@ -135,7 +135,8 @@ module Kpack
135135
blob: {
136136
url: 'old-package-url',
137137
}
138-
} }
138+
}
139+
}
139140
})
140141
end
141142

0 commit comments

Comments
 (0)