Fix swift loopback creation

- Device name for swift::storage::loopback cannot contain undescore unless we
  want to specify metadata.

Change-Id: I5631e4cd79ab2a0fdaf7ad206c7e3f6606266daf
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud
2014-11-07 15:50:13 +01:00
parent 34ecfcecad
commit 34065abc59
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -1,5 +1,5 @@
swift::storage::loopback { 'swift_loopback':
swift::storage::loopback { 'swiftloopback':
base_dir => '/srv/loopback-device',
mnt_base_dir => '/srv/node',
require => Class['swift'],