MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / _delete_security_group

Method _delete_security_group

web/pgacloud/providers/aws.py:277–287  ·  view source on GitHub ↗

Delete a security group

(self, args, id)

Source from the content-addressed store, hash-verified

275 time.sleep(5)
276
277 def _delete_security_group(self, args, id):
278 """ Delete a security group """
279 ec2 = self._get_aws_client('ec2', args)
280
281 debug('Deleting security group: {}...'.format(id))
282 try:
283 ec2.delete_security_group(
284 GroupId=id
285 )
286 except Exception as e:
287 error(str(e))
288
289 ##########################################################################
290 # User commands

Callers 1

cmd_delete_instanceMethod · 0.95

Calls 3

_get_aws_clientMethod · 0.95
debugFunction · 0.90
errorFunction · 0.90

Tested by

no test coverage detected