Skip to content

Commit e9ecbe0

Browse files
committed
chore: Remove unneccessary conditional from upload_stemcell
Expects that callers of the upload_stemcell function will set the BOSH_LITE env var if their environment is a BOSH Lite. In that case, the bbl state check conditional for bosh-lite is unnecessary.
1 parent b06270c commit e9ecbe0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

shared-functions

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,7 @@ upload_stemcell() {
444444
else
445445
infrastructure="$(jq -r .iaas bbl-state/${BBL_STATE_DIR}/bbl-state.json)"
446446

447-
if [ "$infrastructure" = "bosh-lite" ]; then
448-
stemcell_name="bosh-warden-boshlite"
449-
elif [ "$infrastructure" = "aws" ]; then
447+
if [ "$infrastructure" = "aws" ]; then
450448
stemcell_name="bosh-aws-xen-hvm"
451449
elif [ "$infrastructure" = "gcp" ]; then
452450
stemcell_name="bosh-google-kvm"

0 commit comments

Comments
 (0)