Skip to content

Commit fd16472

Browse files
author
Neetu Jain
committed
changing error raised
1 parent 2f7e0dc commit fd16472

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

SoftLayer/managers/network.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
:license: MIT, see LICENSE for more details.
77
"""
88

9-
from SoftLayer import utils
109
from SoftLayer import exceptions
10+
from SoftLayer import utils
1111

1212
DEFAULT_SUBNET_MASK = ','.join(['hardware',
1313
'datacenter',
@@ -134,7 +134,8 @@ def cancel_subnet(self, subnet_id):
134134
"""
135135
subnet = self.get_subnet(subnet_id, mask='id, billingItem.id')
136136
if "billingItem" not in subnet:
137-
raise exceptions.SoftLayerError('Can not cancel subnet %s' % subnet_id)
137+
raise exceptions.SoftLayerError('Can not cancel subnet %'
138+
% subnet_id)
138139
billing_id = subnet['billingItem']['id']
139140
return self.client['Billing_Item'].cancelService(id=billing_id)
140141

0 commit comments

Comments
 (0)