Browse code

Merge "lib/cinder:configure tgt even if the package was purged"

Jenkins authored on 2016/01/09 03:07:09
Showing 1 changed files
... ...
@@ -467,6 +467,8 @@ function install_cinderclient {
467 467
 function _configure_tgt_for_config_d {
468 468
     if [[ ! -d /etc/tgt/stack.d/ ]]; then
469 469
         sudo ln -sf $CINDER_STATE_PATH/volumes /etc/tgt/stack.d
470
+    fi
471
+    if ! grep -q "include /etc/tgt/stack.d/*" /etc/tgt/targets.conf; then
470 472
         echo "include /etc/tgt/stack.d/*" | sudo tee -a /etc/tgt/targets.conf
471 473
     fi
472 474
 }