Skip to content

Commit 5a406b4

Browse files
author
Erick Sapp
committed
More refactoring.
1 parent e2648c6 commit 5a406b4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

SoftLayer/CLI/securitygroup/interface.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ def add(env, securitygroup_id, network_component, server, interface):
9292
mgr = SoftLayer.NetworkManager(env.client)
9393
component_id = _get_component_id(env, network_component, server, interface)
9494

95-
success = mgr.attach_securitygroup_component(securitygroup_id,
95+
ret = mgr.attach_securitygroup_component(securitygroup_id,
9696
component_id)
97-
if not success:
97+
if not ret:
9898
raise exceptions.CLIAbort("Could not attach network component")
9999

100100
table = formatting.Table(REQUEST_COLUMNS)
101-
table.add_row([success['requestId']])
101+
table.add_row([ret['requestId']])
102102

103103
env.fout(table)
104104

@@ -120,13 +120,13 @@ def remove(env, securitygroup_id, network_component, server, interface):
120120
mgr = SoftLayer.NetworkManager(env.client)
121121
component_id = _get_component_id(env, network_component, server, interface)
122122

123-
success = mgr.detach_securitygroup_component(securitygroup_id,
123+
ret = mgr.detach_securitygroup_component(securitygroup_id,
124124
component_id)
125-
if not success:
125+
if not ret:
126126
raise exceptions.CLIAbort("Could not detach network component")
127127

128128
table = formatting.Table(REQUEST_COLUMNS)
129-
table.add_row([success['requestId']])
129+
table.add_row([ret['requestId']])
130130

131131
env.fout(table)
132132

0 commit comments

Comments
 (0)