Fixes the swift loopback device creation for test setup.

If CONFIG_SWIFT_STORAGES stays blank, packstack should create one loopback
device for swift instead of two (/srv/node/swift_loopback and
/srv/node/swiftloopback).

Change-Id: Id961c4a284abf5b6a2a8d2fccdc0ea7ff498d4a0
Fixes: rhbz#1141125
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud
2014-09-15 10:17:51 +02:00
parent 2a971bbc8d
commit 50eda013c9

View File

@@ -206,7 +206,7 @@ def parse_devices(config):
'device_name': 'device%s' % device_number})
if not devices:
devices.append({'device': None, 'zone': 1,
'device_name': 'swiftloopback'})
'device_name': 'swift_loopback'})
return devices