DeleteSecurityGroup Deletes a security group on the API using the 'cf delete-security-group'
(s resources.SecurityGroup)
| 42 | |
| 43 | // DeleteSecurityGroup Deletes a security group on the API using the 'cf delete-security-group' |
| 44 | func DeleteSecurityGroup(s resources.SecurityGroup) { |
| 45 | if s.Name == "" { |
| 46 | fmt.Println("Empty security group name. Skipping deletion.") |
| 47 | return |
| 48 | } |
| 49 | Eventually(CF("delete-security-group", s.Name, "-f")).Should(Exit(0)) |
| 50 | } |
no test coverage detected