Skip to content

Commit 09dee3b

Browse files
committed
add security group wait for request
1 parent 93888aa commit 09dee3b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

SoftLayer/managers/network.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def add_securitygroup_rules(self, group_id, rules):
111111
"""
112112
if not isinstance(rules, list):
113113
raise TypeError("The rules provided must be a list of dictionaries")
114-
return self.security_group.addRules(rules, id=group_id)
114+
r_val = self.security_group.addRules(rules, id=group_id)
115+
print('r_val add rules return '+str(r_val))
116+
return r_val
115117

116118
def add_subnet(self, subnet_type, quantity=None, vlan_id=None, version=4,
117119
test_order=False):
@@ -201,8 +203,11 @@ def attach_securitygroup_components(self, group_id, component_ids):
201203
:param int group_id: The ID of the security group
202204
:param list component_ids: The IDs of the network components to attach
203205
"""
204-
return self.security_group.attachNetworkComponents(component_ids,
206+
r_val = self.security_group.attachNetworkComponents(component_ids,
205207
id=group_id)
208+
209+
print('r_val attach NC return '+str(r_val))
210+
return r_val
206211

207212
def cancel_global_ip(self, global_ip_id):
208213
"""Cancels the specified global IP address.

0 commit comments

Comments
 (0)