]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
sysvinit: use known hostname $host instead of (incorrectly) recalculating
authorSage Weil <sage@inktank.com>
Wed, 22 May 2013 16:47:03 +0000 (09:47 -0700)
committerSage Weil <sage@inktank.com>
Wed, 22 May 2013 19:39:10 +0000 (12:39 -0700)
We would need to do hostname -s on the remote node, not the local one.
But we already have $host; use it!

Reported-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
src/init-ceph.in

index e8a71949995ed34adc8df5c522a9850532dcbff4..65e93974283d2582d38a068756ecfb2c71a8de69 100644 (file)
@@ -320,7 +320,7 @@ for name in $what; do
                        "$id" \
                        "${osd_weight:-${defaultweight:-1}}" \
                        root=default \
-                       host="$(hostname -s)" \
+                       host="$host" \
                        $osd_location \
                        || :
                fi