Skip to content

Commit 0470893

Browse files
committed
cluster: Fix how settings args are passed to 'init'
1 parent 2a0b1bb commit 0470893

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

asyncpg/cluster.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@ def init(self, **settings):
134134
self._data_dir))
135135

136136
if settings:
137-
extra_args = ['-o'] + ['--{}={}'.format(k, v)
138-
for k, v in settings.items()]
137+
settings_args = ['--{}={}'.format(k, v)
138+
for k, v in settings.items()]
139+
extra_args = ['-o'] + [' '.join(settings_args)]
139140
else:
140141
extra_args = []
141142

0 commit comments

Comments
 (0)