Fixing kwarg vs posarg
This commit is contained in:
parent
b28d69cd31
commit
a0b92f28cc
@ -246,6 +246,6 @@ def build_agent(api_url,
|
|||||||
listen_host,
|
listen_host,
|
||||||
listen_port):
|
listen_port):
|
||||||
|
|
||||||
return TeethAgent(api_url=api_url,
|
return TeethAgent(api_url,
|
||||||
advertise_address=(advertise_host, advertise_port),
|
(advertise_host, advertise_port),
|
||||||
listen_address=(listen_host, listen_port))
|
(listen_host, listen_port))
|
||||||
|
@ -40,7 +40,7 @@ def run():
|
|||||||
parser.add_argument('--advertise-host',
|
parser.add_argument('--advertise-host',
|
||||||
default='0.0.0.0',
|
default='0.0.0.0',
|
||||||
type=str,
|
type=str,
|
||||||
help='The port to tell Ironic to reply and send '
|
help='The host to tell Ironic to reply and send '
|
||||||
'commands to.')
|
'commands to.')
|
||||||
parser.add_argument('--advertise-port',
|
parser.add_argument('--advertise-port',
|
||||||
default=9999,
|
default=9999,
|
||||||
@ -48,8 +48,8 @@ def run():
|
|||||||
help='The port to tell Ironic to reply and send '
|
help='The port to tell Ironic to reply and send '
|
||||||
'commands to.')
|
'commands to.')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
agent.build_agent(api_url=args.api_url,
|
agent.build_agent(args.api_url,
|
||||||
advertise_host=args.advertise_host,
|
args.advertise_host,
|
||||||
advertise_port=args.advertise_port,
|
args.advertise_port,
|
||||||
listen_host=args.listen_host,
|
args.listen_host,
|
||||||
listen_port=args.listen_port).run()
|
args.listen_port).run()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user