Merge "Reverts change to default state_path"

This commit is contained in:
Jenkins 2014-03-17 06:04:47 +00:00 committed by Gerrit Code Review
commit cce858cca2
3 changed files with 2 additions and 6 deletions

View File

@ -299,7 +299,7 @@
# Top-level directory for maintaining nova's state (string
# value)
#state_path=/var/lib/nova
#state_path=$pybasedir
#

View File

@ -29,7 +29,7 @@ path_opts = [
default=os.path.join(sys.prefix, 'local', 'bin'),
help='Directory where nova binaries are installed'),
cfg.StrOpt('state_path',
default='/var/lib/nova',
default='$pybasedir',
help="Top-level directory for maintaining nova's state"),
]

View File

@ -14,8 +14,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import os
from oslo.config import cfg
@ -43,8 +41,6 @@ class ConfFixture(config_fixture.Config):
"""Fixture to manage global conf settings."""
def setUp(self):
super(ConfFixture, self).setUp()
self.conf.set_default('state_path', os.path.abspath(
os.path.join(os.path.dirname(__file__), '..', '..')))
self.conf.set_default('api_paste_config',
paths.state_path_def('etc/nova/api-paste.ini'))
self.conf.set_default('host', 'fake-mini')