Small fix in post-stack.sh script

Change-Id: Ie8a751c5a5dca1c995799016f054718672b9e0cb
This commit is contained in:
Dmitry Teselkin 2013-05-21 19:41:09 +04:00
parent 5c5fd0436d
commit f7e04aca74
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ function glance_image_create {
if [[ $NETWORK_MODE == "nova" ]] ; then
if [[ ',standalone,compute,' =~ ,$INSTALL_MODE, ]] ; then
echo "Adding iptables rule to allow Internet access from instances..."
__iptables_rule="POSTROUTING -t nat -s '$FIXED_RANGE' ! -d '$FIXED_RANGE' -j MASQUERADE"
__iptables_rule="POSTROUTING -t nat -s $FIXED_RANGE ! -d $FIXED_RANGE -j MASQUERADE"
sudo iptables -C $__iptables_rule
if [[ $? == 0 ]] ; then
echo "Iptables rule already exists."