Change-Id: Ia550d4603d9520ddea84a144e5e042903456d96d
Closes-Bug: 1405319
| ... | ... |
@@ -292,7 +292,7 @@ function configure_cinder {
|
| 292 | 292 |
configure_cinder_driver |
| 293 | 293 |
fi |
| 294 | 294 |
|
| 295 |
- if [[ is_fedora && $DISTRO =~ (rhel6) ]]; then |
|
| 295 |
+ if is_fedora && [[ $DISTRO =~ (rhel6) ]]; then |
|
| 296 | 296 |
# Cinder clones are slightly larger due to some extra |
| 297 | 297 |
# metadata. RHEL6 will not allow auto-extending of LV's |
| 298 | 298 |
# without this, leading to clones giving hard-to-track disk |
| ... | ... |
@@ -72,7 +72,7 @@ function _horizon_config_set {
|
| 72 | 72 |
# cleanup_horizon() - Remove residual data files, anything left over from previous |
| 73 | 73 |
# runs that a clean run would need to clean up |
| 74 | 74 |
function cleanup_horizon {
|
| 75 |
- if [[ is_fedora && $DISTRO =~ (rhel6) ]]; then |
|
| 75 |
+ if is_fedora && [[ $DISTRO =~ (rhel6) ]]; then |
|
| 76 | 76 |
# If ``/usr/bin/node`` points into ``$DEST`` |
| 77 | 77 |
# we installed it via ``install_nodejs`` |
| 78 | 78 |
if [[ $(readlink -f /usr/bin/node) =~ ($DEST) ]]; then |
| ... | ... |
@@ -751,7 +751,7 @@ function stop_neutron {
|
| 751 | 751 |
# cleanup_neutron() - Remove residual data files, anything left over from previous |
| 752 | 752 |
# runs that a clean run would need to clean up |
| 753 | 753 |
function cleanup_neutron {
|
| 754 |
- if [[ is_provider_network && is_ironic_hardware ]]; then |
|
| 754 |
+ if is_provider_network && is_ironic_hardware; then |
|
| 755 | 755 |
for IP in $(ip addr show dev $OVS_PHYSICAL_BRIDGE | grep ' inet ' | awk '{print $2}'); do
|
| 756 | 756 |
sudo ip addr del $IP dev $OVS_PHYSICAL_BRIDGE |
| 757 | 757 |
sudo ip addr add $IP dev $PUBLIC_INTERFACE |