Drop use of tuple unpacking to fix Python 3.4 compability
Use of Tuple unpacking in function arguments was not completely generalized until PEP-448 [0] was implemented in Python 3.5. Revert to using List instead until we the old snakes have retired. 0: https://www.python.org/dev/peps/pep-0448/ Change-Id: I4befe75d3a9f976bb32f49895833562bcf822c9c Closes-Bug: #1883657
This commit is contained in:
parent
2b143b9687
commit
d0431be73d
|
@ -291,14 +291,13 @@ class CephCharm(charms_openstack.charm.OpenStackCharm,
|
|||
:returns: Path to directory
|
||||
:rtype: str
|
||||
"""
|
||||
keyring_path_components = (
|
||||
keyring_path_components = [
|
||||
self.snap_path_prefix,
|
||||
self.ceph_keyring_path_prefix,
|
||||
self.ceph_service_name)
|
||||
self.ceph_service_name]
|
||||
|
||||
if self.ceph_service_type != self.CephServiceType.client:
|
||||
keyring_path_components = (
|
||||
*keyring_path_components,
|
||||
keyring_path_components.append(
|
||||
'{}-{}'.format(self.ceph_cluster_name,
|
||||
self.hostname))
|
||||
|
||||
|
|
Loading…
Reference in New Issue