Skip to content

Commit 2831a43

Browse files
Merge branch 'edsonarios-issue1995'
2 parents c13eeb0 + 0b1f33b commit 2831a43

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

SoftLayer/CLI/bandwidth/pools_delete.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@ def cli(env, identifier):
1414
"""Delete bandwidth pool."""
1515

1616
manager = BandwidthManager(env.client)
17-
bandwidth_pool = manager.delete_pool(identifier)
18-
19-
if bandwidth_pool:
20-
env.fout(f"Bandwidth pool with ID {identifier} was programmed to will delete")
17+
manager.delete_pool(identifier)
18+
env.fout(f"Bandwidth pool {identifier} has been scheduled for deletion.")

tests/CLI/modules/bandwidth_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_delete_bandwidth(self):
6666
self.assert_no_fail(result)
6767
self.assert_called_with('SoftLayer_Network_Bandwidth_Version1_Allotment', 'requestVdrCancellation')
6868
json_output = json.loads(result.output)
69-
self.assertEqual("Bandwidth pool with ID 123456 was programmed to will delete", json_output)
69+
self.assertEqual("Bandwidth pool 123456 has been scheduled for deletion.", json_output)
7070

7171

7272
def _bandwidth_advanced_search():

0 commit comments

Comments
 (0)