datbases: wait 1.5 second assign user to db after create
This commit is contained in:
parent
e1d250c35f
commit
8cd3605d48
|
@ -29,6 +29,9 @@ class MySQLController(ServiceController):
|
||||||
# Create database and re-set permissions
|
# Create database and re-set permissions
|
||||||
mysql -e 'CREATE DATABASE `%(database)s`;' || true
|
mysql -e 'CREATE DATABASE `%(database)s`;' || true
|
||||||
mysql mysql -e 'DELETE FROM db WHERE db = "%(database)s";'\
|
mysql mysql -e 'DELETE FROM db WHERE db = "%(database)s";'\
|
||||||
|
|
||||||
|
# wait to create user
|
||||||
|
sleep 1.5
|
||||||
""") % context
|
""") % context
|
||||||
)
|
)
|
||||||
for user in database.users.all():
|
for user in database.users.all():
|
||||||
|
|
Loading…
Reference in a new issue