Browse code

Merge "Refactor lib/neutron rootwrap conf for reuse"

Jenkins authored on 2015/02/04 12:50:29
Showing 1 changed files
... ...
@@ -791,15 +791,20 @@ function cleanup_neutron {
791 791
     done
792 792
 }
793 793
 
794
-# _configure_neutron_common()
795
-# Set common config for all neutron server and agents.
796
-# This MUST be called before other ``_configure_neutron_*`` functions.
797
-function _configure_neutron_common {
794
+
795
+function _create_neutron_conf_dir {
798 796
     # Put config files in ``NEUTRON_CONF_DIR`` for everyone to find
799 797
     if [[ ! -d $NEUTRON_CONF_DIR ]]; then
800 798
         sudo mkdir -p $NEUTRON_CONF_DIR
801 799
     fi
802 800
     sudo chown $STACK_USER $NEUTRON_CONF_DIR
801
+}
802
+
803
+# _configure_neutron_common()
804
+# Set common config for all neutron server and agents.
805
+# This MUST be called before other ``_configure_neutron_*`` functions.
806
+function _configure_neutron_common {
807
+    _create_neutron_conf_dir
803 808
 
804 809
     cp $NEUTRON_DIR/etc/neutron.conf $NEUTRON_CONF
805 810