heat scripts : Avoid using lsb_release in tools/openstack

lsb_release is not installed by default on Fedora (or at least
it's not on my F17 box), so we should avoid using it, simple
alternative is just to read /etc/fedora-release instead

Change-Id: I341c151e8560fb971b11d27578934940aeeca1a7
Signed-off-by: Steven Hardy <shardy@redhat.com>
This commit is contained in:
Steven Hardy 2013-02-07 11:16:28 +00:00
parent d2223869f9
commit cae898d519
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ else
with_cinder=0
fi
if [[ `lsb_release -sr` -gt 17 || $with_cinder -eq 1 ]]; then
FEDORA_VERSION=$(cat /etc/fedora-release | awk '{print $3}')
if [[ $FEDORA_VERSION -gt 17 || $with_cinder -eq 1 ]]; then
VOLUME_SERVICE="openstack-cinder"
VOLUME_PATH="/var/lib/cinder/cinder-volumes.img"
VOLUME_NAME="cinder-volumes"