We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f7e0dc commit fd16472Copy full SHA for fd16472
1 file changed
SoftLayer/managers/network.py
@@ -6,8 +6,8 @@
6
:license: MIT, see LICENSE for more details.
7
"""
8
9
-from SoftLayer import utils
10
from SoftLayer import exceptions
+from SoftLayer import utils
11
12
DEFAULT_SUBNET_MASK = ','.join(['hardware',
13
'datacenter',
@@ -134,7 +134,8 @@ def cancel_subnet(self, subnet_id):
134
135
subnet = self.get_subnet(subnet_id, mask='id, billingItem.id')
136
if "billingItem" not in subnet:
137
- raise exceptions.SoftLayerError('Can not cancel subnet %s' % subnet_id)
+ raise exceptions.SoftLayerError('Can not cancel subnet %'
138
+ % subnet_id)
139
billing_id = subnet['billingItem']['id']
140
return self.client['Billing_Item'].cancelService(id=billing_id)
141
0 commit comments