Skip to content

Commit 7afc6de

Browse files
author
Matthew Fisher
committed
Merge pull request #996 from deis/977-hotfix
fix(controller): cast registrationEnabled to bool
2 parents 36544e7 + 1c06b51 commit 7afc6de

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

controller/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if ! etcdctl --no-sync -C $ETCD ls $ETCD_PATH >/dev/null 2>&1; then
2929
etcdctl --no-sync -C $ETCD set $ETCD_PATH/protocol ${DEIS_PROTOCOL:-http} >/dev/null
3030
etcdctl --no-sync -C $ETCD set $ETCD_PATH/secretKey ${DEIS_SECRET_KEY:-`openssl rand -base64 64 | tr -d '\n'`} >/dev/null
3131
etcdctl --no-sync -C $ETCD set $ETCD_PATH/builderKey ${DEIS_BUILDER_KEY:-`openssl rand -base64 64 | tr -d '\n'`} >/dev/null
32-
etcdctl --no-sync -C $ETCD set $ETCD_PATH/registrationEnabled True >/dev/null
32+
etcdctl --no-sync -C $ETCD set $ETCD_PATH/registrationEnabled 1 >/dev/null
3333
fi
3434

3535
# wait for confd to run once and install initial templates

controller/templates/confd_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626
DEIS_LOG_DIR = '/var/log/deis'
2727

2828
{{ if .deis_controller_registrationEnabled }}
29-
REGISTRATION_ENABLED = {{ .deis_controller_registrationEnabled }}
29+
REGISTRATION_ENABLED = bool({{ .deis_controller_registrationEnabled }})
3030
{{ end }}

0 commit comments

Comments
 (0)