Delete a security group
(self, args, id)
| 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 |
no test coverage detected