Skip to content

Commit b4484ef

Browse files
author
Kevin McDonald
committed
Fix small style issue
1 parent bdff0e2 commit b4484ef

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

SoftLayer/CLI/loadbal/service_add.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
@click.option('--healthcheck-type',
2525
required=True,
2626
help="The health check type")
27-
@click.option('--ip',
27+
@click.option('--ip-address',
2828
required=True,
29-
help="The IP of the service")
29+
help="The IP address of the service")
3030
@environment.pass_env
31-
def cli(env, identifier, enabled, port, weight, healthcheck_type, ip):
31+
def cli(env, identifier, enabled, port, weight, healthcheck_type, ip_address):
3232
"""Adds a new load balancer service."""
3333

3434
mgr = SoftLayer.LoadBalancerManager(env.client)
@@ -37,9 +37,9 @@ def cli(env, identifier, enabled, port, weight, healthcheck_type, ip):
3737

3838
# check if the IP is valid
3939
ip_address_id = None
40-
if ip:
40+
if ip_address:
4141
ip_service = env.client['Network_Subnet_IpAddress']
42-
ip_record = ip_service.getByIpAddress(ip)
42+
ip_record = ip_service.getByIpAddress(ip_address)
4343
if len(ip_record) > 0:
4444
ip_address_id = ip_record['id']
4545

SoftLayer/testing/xmlrpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ def create_test_server(transport, host='localhost', port=0):
9292
"""Create a test XML-RPC server in a new thread."""
9393
server = TestServer(transport, (host, port), TestHandler)
9494
thread = threading.Thread(target=server.serve_forever,
95-
kwargs={'poll_interval': 0.05})
95+
kwargs={'poll_interval': 0.01})
9696
thread.start()
9797
return server

0 commit comments

Comments
 (0)