Readme à jour, et quelques modifications sur les noms de variables.
This commit is contained in:
parent
f228493399
commit
4bc4cb7abe
8 changed files with 152 additions and 102 deletions
|
@ -24,14 +24,12 @@ from gestion.trigger.host import record_service
|
|||
import gestion.trigger.firewall4.firewall4 as firewall4
|
||||
|
||||
@record_service()
|
||||
def secours(ob_id, body=()):
|
||||
def secours(ob_id, operations=()):
|
||||
"""Regens the specific service
|
||||
|
||||
"""
|
||||
if len(body) != 2:
|
||||
logger.warning("Received body %r, this format is incorrect, discarding.", body)
|
||||
if len(operations) != 2:
|
||||
logger.warning("Received operations %r, this format is incorrect, discarding.", operations)
|
||||
return
|
||||
(service, data) = body
|
||||
(service, data) = operations
|
||||
logger.info("Calling service %s for data %r", service, data)
|
||||
# XXX - Uncomment when in prod
|
||||
#FwFactory.get(service)(data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue