Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
EOLE
Zéphir
Services
Server Manager
Commits
c09b12b0
Commit
c09b12b0
authored
Sep 23, 2019
by
Lionel Morin
Browse files
Merge branch 'updated_list' into 'develop'
updated are list See merge request
!15
parents
59ae4aaa
1dc7236d
Pipeline
#865
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
scripts/controller
View file @
c09b12b0
...
...
@@ -322,18 +322,21 @@ class ServerRunner(ZephirCommonController):
return
ret
@
register_wamp
(
'v1.config.configuration.server.updated'
,
None
,
database
=
True
)
async
def
update_configuration
(
self
,
cursor
,
server_id
,
deploy
):
async
def
update_configuration
(
self
,
cursor
,
servers_id
,
deploy
):
new_servers_id
=
[]
for
server_id
in
servers_id
:
try
:
configuration
=
await
self
.
call
(
'v1.config.configuration.server.get'
,
server_id
=
server_id
,
deploy
=
deploy
)
except
:
self
.
server
.
update_configuration
(
cursor
,
server_id
,
configuration
[
'configuration'
],
deploy
=
deploy
)
new_servers_id
.
append
(
server_id
)
except
Exception
as
err
:
if
DEBUG
:
if
deploy
:
print
(
f
'No configuration available for server
{
server_id
}
'
)
print
(
f
'No configuration available for server
{
server_id
}
:
{
err
}
'
)
else
:
print
(
f
'No undeployed configuration available for server
{
server_id
}
'
)
return
self
.
server
.
update_configuration
(
cursor
,
server_id
,
configuration
[
'configuration'
],
deploy
=
deploy
)
self
.
publish
(
'v1.server.configuration.updated'
,
server_id
=
server_id
,
deploy
=
deploy
)
print
(
f
'No undeployed configuration available for server
{
server_id
}
:
{
err
}
'
)
if
deploy
and
new_servers_id
:
self
.
publish
(
'v1.server.configuration.updated'
,
servers_id
=
new_servers_id
)
@
register_wamp
(
'v1.server.peer-connection.update'
,
notification_uri
=
None
,
database
=
True
)
async
def
update_peerconnection
(
self
,
cursor
,
serverid
):
...
...
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