MCPcopy Create free account
hub / github.com/cloudfoundry/cli / DeleteSecurityGroup

Function DeleteSecurityGroup

integration/helpers/security_group.go:44–50  ·  view source on GitHub ↗

DeleteSecurityGroup Deletes a security group on the API using the 'cf delete-security-group'

(s resources.SecurityGroup)

Source from the content-addressed store, hash-verified

42
43// DeleteSecurityGroup Deletes a security group on the API using the 'cf delete-security-group'
44func 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}

Calls 2

CFFunction · 0.85
PrintlnMethod · 0.65

Tested by

no test coverage detected