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
Dynamic Exposure
rabotnik
rcom
Commits
7d777a1f
Commit
7d777a1f
authored
Apr 25, 2022
by
Felix Delattre
Browse files
Cleaned up connection variables
parent
d00fd08e
Pipeline
#41959
failed with stage
in 2 minutes and 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
7d777a1f
...
...
@@ -14,3 +14,4 @@ env
venv
.idea
.config
rcom/rcom.py
View file @
7d777a1f
...
...
@@ -20,7 +20,6 @@ import argparse
import
sys
import
asyncio
import
logging
import
os
from
rabotnik
import
MessageBus
...
...
@@ -99,17 +98,6 @@ def main(args: list = None, message_bus: MessageBus = None):
group
=
parser
.
add_argument_group
(
"message bus"
)
group
.
add_argument
(
"--hostname"
,
type
=
str
,
help
=
"Set message bus hostname."
)
group
.
add_argument
(
"--username"
,
type
=
str
,
help
=
"Set message bus username."
,
)
group
.
add_argument
(
"--password"
,
type
=
str
,
help
=
"Set message bus password."
,
)
group
.
add_argument
(
"--timeout"
,
type
=
int
,
...
...
@@ -132,10 +120,6 @@ def main(args: list = None, message_bus: MessageBus = None):
logging
.
getLogger
(
"rabotnik"
).
setLevel
(
logging
.
DEBUG
)
logger
.
setLevel
(
logging
.
DEBUG
)
os
.
environ
.
setdefault
(
"RABOTNIK_MESSAGE_BUS_HOST"
,
args
.
hostname
)
os
.
environ
.
setdefault
(
"RABOTNIK_MESSAGE_BUS_USER"
,
args
.
username
)
os
.
environ
.
setdefault
(
"RABOTNIK_MESSAGE_BUS_PASSWORD"
,
args
.
password
)
if
message_bus
is
None
:
message_bus
=
MessageBus
()
loop
.
create_task
(
...
...
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