in gstack/controllers/firewalls.py [0:0]
def deletesecuritygroup(projectid, authorization, firewall):
command = 'deleteSecurityGroup'
args = {'name': firewall}
cloudstack_response = requester.make_request(
command,
args,
authorization.client_id,
authorization.client_secret
)
cloudstack_response = cloudstack_response
app.logger.debug(
'Processing request for deleting a Firewall \n'
'Project: ' + projectid + '\n' +
'Firewall: ' + firewall + '\n' +
json.dumps(cloudstack_response, indent=4, separators=(',', ': '))
)
populated_response = {}
res = jsonify(populated_response)
res.status_code = 200
return res