Add more exceptions for SUSE case

all python-*client's are not getting an extra python- prefix

Change-Id: Ic4da525a2efca118570f150cdd1e37f03c7f7376
This commit is contained in:
Dirk Mueller 2016-07-15 14:01:42 +02:00
parent e9a2dbf242
commit 0d92819787
2 changed files with 10 additions and 8 deletions

View File

@ -134,14 +134,13 @@ SUSE_PKG_MAP = [
pkgfun=openstack_prefix_tr),
# OpenStack clients
MultiRule(
mods=['python-ceilometerclient', 'python-cinderclient',
'python-designateclient', 'python-glanceclient',
'python-heatclient', 'python-ironicclient',
'python-keystoneclient', 'python-manilaclient',
'python-neutronclient', 'python-novaclient',
'python-saharaclient', 'python-swiftclient',
'python-troveclient', 'python-tuskarclient',
'python-zaqarclient'],
mods=['python-%sclient' % c for c in (
'k8s', 'aodh', 'barbican', 'ceilometer', 'congress',
'designate', 'heat', 'glance', 'ironic', 'keystone',
'magnum', 'manila', 'mistral', 'murano', 'monasca',
'neutron', 'nova', 'openstack', 'sahara', 'searchlight',
'senlin', 'smaug', 'solum', 'swift', 'tacker', 'trove',
'watcher', 'zaqar')],
pkgfun=lambda x: x),
]

View File

@ -39,6 +39,9 @@ class Pymod2PkgTests(unittest.TestCase):
def test_translation_suse(self):
self.assertEqual(pymod2pkg.module2package('nova', 'suse'),
'openstack-nova')
self.assertEqual(pymod2pkg.module2package('python-aodhclient',
'suse'),
'python-aodhclient')
self.assertEqual(pymod2pkg.module2package('python-neutronclient',
'suse'),
'python-neutronclient')