Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos-caddy
Commits
ccb1fd27
Commit
ccb1fd27
authored
Oct 20, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix connection string for a list of backends.
parent
e6f73189
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
slapos/recipe/erp5_test/__init__.py
slapos/recipe/erp5_test/__init__.py
+3
-3
No files found.
slapos/recipe/erp5_test/__init__.py
View file @
ccb1fd27
...
...
@@ -33,12 +33,12 @@ class Recipe(GenericBaseRecipe):
mysql_connection_string_list
=
[]
path_list
=
[]
# XXX: assume existence of 100 test databases, because slaves are not
# functional yet in slapos: test
_0...test_100, with same user name
# functional yet in slapos: test
db_0...testdb_100, with testuser_N
mysql_template
=
"%s@%s:%s %s %s"
mysql_parsed
=
urlparse
.
urlparse
(
self
.
options
[
'mysql-url'
])
for
i
in
range
(
0
,
100
):
mysql_connection_string_list
.
append
(
mysql_template
%
(
'test_%s'
%
i
,
mysql_parsed
.
hostname
,
mysql_parsed
.
port
,
'test_%s'
%
i
,
mysql_parsed
.
password
))
mysql_connection_string_list
.
append
(
mysql_template
%
(
'test
db
_%s'
%
i
,
mysql_parsed
.
hostname
,
mysql_parsed
.
port
,
'test
user
_%s'
%
i
,
mysql_parsed
.
password
))
mysql_connection_string
=
mysql_template
%
(
'erp5_test'
,
mysql_parsed
.
hostname
,
mysql_parsed
.
port
,
'erp5_test'
,
mysql_parsed
.
password
)
cloudooo_parsed
=
urlparse
.
urlparse
(
self
.
options
[
'cloudooo-url'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment