Skip to content

Commit cc4c6ed

Browse files
author
caberos
committed
fix tox tool
1 parent b6cd35a commit cc4c6ed

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

SoftLayer/CLI/subnet/edit_ip.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
@click.command()
1111
@click.argument('identifier')
12-
@click.option('--ip', required=True,
12+
@click.option('--ip-address', required=True,
1313
help='Assume the ipAddress to set the note.')
1414
@click.option('--note', help="set ip address note of subnet")
1515
@environment.pass_env
16-
def cli(env, identifier, ip, note):
16+
def cli(env, identifier, ip_address, note):
1717
"""Set the note of the ipAddress subnet"""
1818

1919
data = {
@@ -23,5 +23,5 @@ def cli(env, identifier, ip, note):
2323
ips = mgr.get_subnet(identifier, mask='id,ipAddresses[id,ipAddress]').get('ipAddresses')
2424

2525
for address in ips:
26-
if ip == address.get('ipAddress'):
26+
if ip_address == address.get('ipAddress'):
2727
mgr.set_subnet_ipddress_note(address.get('id'), data)

SoftLayer/fixtures/SoftLayer_Network_Subnet_IpAddress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
'subnetId': 5678,
99
}
1010

11-
editObject= True
11+
editObject = True

tests/CLI/modules/subnet_tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def test_detail(self):
3636
'private_ip': '10.0.1.2'
3737
}
3838
],
39-
'ipAddresses': {
40-
'123456': '16.26.26.25',
41-
'123457': '16.26.26.26'},
39+
'ipAddresses': {
40+
'123456': '16.26.26.25',
41+
'123457': '16.26.26.26'},
4242
'hardware': 'none',
4343
'usable ips': 22
4444
},
@@ -139,6 +139,6 @@ def test_create_subnet_static_ipv6(self, confirm_mock):
139139
self.assertEqual(output, json.loads(result.output))
140140

141141
def test_editrou_Ip(self):
142-
result = self.run_command(['subnet', 'edit-ip', '123456', '--ip=16.26.26.26', '--note=test'])
142+
result = self.run_command(['subnet', 'edit-ip', '123456', '--ip-address=16.26.26.26', '--note=test'])
143143
self.assert_no_fail(result)
144144
self.assertTrue(result)

0 commit comments

Comments
 (0)