Browse Source

Merge "Fix manila backend_names and enable_protocols"

changes/92/784892/1
Zuul 4 weeks ago
committed by Gerrit Code Review
parent
commit
6c4d89c290
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      config_tempest/services/share.py

+ 4
- 4
config_tempest/services/share.py View File

@ -44,12 +44,12 @@ class ShareService(VersionedService):
"pools - storage back-ends can't be discovered.")
return
if pools:
backends = []
enable_protocols = []
backends = set()
enable_protocols = set()
for pool in pools:
backends.append(pool['backend'])
backends.add(pool['backend'])
protocol = pool['capabilities']['storage_protocol'].lower()
enable_protocols.extend(protocol.split('_'))
enable_protocols.update(protocol.split('_'))
conf.set('share', 'backend_names', ','.join(backends))
conf.set('share', 'enable_protocols', ','.join(enable_protocols))


Loading…
Cancel
Save