Skip to content

Commit

Permalink
init: fix typo s/{$update_crush/${update_crush/
Browse files Browse the repository at this point in the history
Signed-off-by: Dietmar Maurer <[email protected]>
Reviewed-by: Loic Dachary <[email protected]>
  • Loading branch information
Loic Dachary committed Nov 21, 2013
1 parent b493178 commit 3502d4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/init-ceph.in
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ for name in $what; do

if [ "$type" = "osd" ]; then
get_conf update_crush "" "osd crush update on start"
if [ "${update_crush:-1}" = "1" -o "{$update_crush:-1}" = "true" ]; then
if [ "${update_crush:-1}" = "1" -o "${update_crush:-1}" = "true" ]; then
# update location in crush
get_conf osd_location_hook "$BINDIR/ceph-crush-location" "osd crush location hook"
osd_location=`$osd_location_hook --cluster ceph --id $id --type osd`
Expand Down
2 changes: 1 addition & 1 deletion src/upstart/ceph-osd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pre-start script
install -d -m0755 /var/run/ceph

update="$(ceph-conf --cluster=${cluster:-ceph} --name=osd.$id --lookup osd_crush_update_on_start || :)"
if [ "${update:-1}" = "1" -o "{$update:-1}" = "true" ]; then
if [ "${update:-1}" = "1" -o "${update:-1}" = "true" ]; then
# update location in crush
hook="$(ceph-conf --cluster=${cluster:-ceph} --name=osd.$id --lookup osd_crush_location_hook || :)"
if [ -z "$hook" ]; then
Expand Down

0 comments on commit 3502d4f

Please sign in to comment.