| commit | 698c62c430032d323350a9c85cd181ca61fdb4c3 | [log] [tgz] |
|---|---|---|
| author | Jenkins <jenkins@review.openstack.org> | Fri Jan 08 18:07:09 2016 +0000 |
| committer | Gerrit Code Review <review@openstack.org> | Fri Jan 08 18:07:12 2016 +0000 |
| tree | 90065c40a01530c76680a7a758dd1018af4ec5d9 | |
| parent | 6f002b169c7b5f418b9b21157f654d05a4480c88 [diff] | |
| parent | a263e7dd52f65e92e6fc0a09ec89509904f83d6b [diff] |
Merge "lib/cinder:configure tgt even if the package was purged"
diff --git a/lib/cinder b/lib/cinder index 5bd940b..9ca8109 100644 --- a/lib/cinder +++ b/lib/cinder
@@ -467,6 +467,8 @@ function _configure_tgt_for_config_d { if [[ ! -d /etc/tgt/stack.d/ ]]; then sudo ln -sf $CINDER_STATE_PATH/volumes /etc/tgt/stack.d + fi + if ! grep -q "include /etc/tgt/stack.d/*" /etc/tgt/targets.conf; then echo "include /etc/tgt/stack.d/*" | sudo tee -a /etc/tgt/targets.conf fi }