Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
resif_amqp_worker
Commits
ef68e283
Commit
ef68e283
authored
Feb 14, 2022
by
Jonathan Schaeffer
Committed by
Résif-DC
Feb 14, 2022
Browse files
import wfcatalog on condition only
parent
a0b40fb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
amqpWorker.py
View file @
ef68e283
...
...
@@ -14,7 +14,7 @@ import traceback
from
proton.utils
import
BlockingConnection
from
proton
import
Message
import
resif_pyinventory
from
wfcatalog.collector.WFCatalogCollector
import
WFCatalogCollector
SCRIPT_VERSION
=
2021.190
...
...
@@ -182,6 +182,7 @@ if __name__ == "__main__":
if
args
.
seedtree
:
queue
=
QUEUE_SEEDTREE_UPDATE
if
args
.
wfcatalog
:
from
wfcatalog.collector.WFCatalogCollector
import
WFCatalogCollector
queue
=
QUEUE_WFCATALOG_UPDATE
# connect to AMQP broker
...
...
Write
Preview
Supports
Markdown
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