Skip to content

Commit f1922ab

Browse files
tox fixes
1 parent 878db94 commit f1922ab

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

SoftLayer/CLI/autoscale/edit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ def cli(env, identifier, name, minimum, maximum, userdata, userfile, cpu, memory
3030
template['maximumMemberCount'] = maximum
3131
virt_template = {}
3232
if userdata:
33-
virt_template['userData'] = [{"value":userdata}]
33+
virt_template['userData'] = [{"value": userdata}]
3434
elif userfile:
3535
with open(userfile, 'r') as userfile_obj:
36-
virt_template['userData'] = [{"value":userfile_obj.read()}]
36+
virt_template['userData'] = [{"value": userfile_obj.read()}]
3737
virt_template['startCpus'] = cpu
3838
virt_template['maxMemory'] = memory
3939

@@ -48,7 +48,7 @@ def cli(env, identifier, name, minimum, maximum, userdata, userfile, cpu, memory
4848
group['virtualGuestMemberTemplate'][key] = value
4949
clean_template['virtualGuestMemberTemplate'] = group['virtualGuestMemberTemplate']
5050

51-
result = autoscale.edit(identifier, clean_template)
51+
autoscale.edit(identifier, clean_template)
5252
click.echo("Done")
5353

5454

SoftLayer/fixtures/SoftLayer_Scale_Group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,4 +454,4 @@
454454
},
455455
]
456456

457-
editObject = True
457+
editObject = True

SoftLayer/managers/autoscale.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,4 @@ def edit(self, identifier, template):
113113
https://sldn.softlayer.com/reference/services/SoftLayer_Scale_Group/editObject/
114114
.. _SoftLayer_Scale_Group: https://sldn.softlayer.com/reference/datatypes/SoftLayer_Scale_Group/
115115
"""
116-
117-
118-
return self.client.call('SoftLayer_Scale_Group', 'editObject', template, id=identifier)
116+
return self.client.call('SoftLayer_Scale_Group', 'editObject', template, id=identifier)

tests/CLI/modules/autoscale_tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
Tests for the autoscale cli command
99
"""
1010
import mock
11-
import tempfile
11+
1212
from SoftLayer import fixtures
1313
from SoftLayer import testing
1414

15+
import tempfile
16+
1517

1618
class AutoscaleTests(testing.TestCase):
1719

tests/managers/autoscale_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_autoscale_get_virtual_guests_mask(self):
116116
)
117117

118118
def test_edit_object(self):
119-
template = {'name': 'test'}
119+
template = {'name': 'test'}
120120
self.autoscale.edit(12345, template)
121121
self.assert_called_with(
122122
'SoftLayer_Scale_Group',

0 commit comments

Comments
 (0)