Skip to content

Commit

Permalink
Merge pull request #38 from ernestio/ernestio/ernest#471
Browse files Browse the repository at this point in the history
correcting network_security_group -> security_group
  • Loading branch information
adriacidre authored Jun 7, 2017
2 parents 542e245 + e7b6c4b commit f4806f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions c_network_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ func (n *NetworkSecurityGroup) Handle(subject string, c component, lines []Messa
parts := strings.Split(subject, ".")
subject = parts[0] + "." + parts[1]
switch subject {
case "network_security_group.create":
case "security_group.create":
lines = n.getSingleDetail(c, "Created Network Security Group")
case "network_security_group.update":
case "security_group.update":
lines = n.getSingleDetail(c, "Updated Network Security Group")
case "network_security_group.delete":
case "security_group.delete":
lines = n.getSingleDetail(c, "Deleted Network Security Group")
case "network_security_groups.find":
case "security_groups.find":
for _, cx := range c.getFoundComponents() {
lines = append(lines, n.getSingleDetail(cx, "Found Network Security Group")...)
}
Expand Down
2 changes: 1 addition & 1 deletion generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func genericHandler(msg *nats.Msg) {
case "local_network_gateway", "local_network_gateways":
var h LocalNetworkGateway
msgLines = h.Handle(msg.Subject, c, msgLines)
case "network_security_group", "network_security_groups":
case "security_group", "security_groups":
var h NetworkSecurityGroup
msgLines = h.Handle(msg.Subject, c, msgLines)
case "sql_database", "sql_databases":
Expand Down

0 comments on commit f4806f1

Please sign in to comment.