Correct log message when removing a security group
When a security group is removed from a port nova
incorrectly logs this as a security group addition
Depends-On: I344d8fdded9b7d5385fcb41b699f1352acb4cda7
Change-Id: If525313c63c4553abe8bea6f2bfaf75431ed18ea
Closes-bug: 1731889
(cherry picked from commit 01da04a0a7
)
This commit is contained in:
parent
ca03fe8737
commit
86ea9b8834
|
@ -526,8 +526,8 @@ class SecurityGroupAPI(security_group_base.SecurityGroupBase):
|
|||
|
||||
updated_port = {'security_groups': port['security_groups']}
|
||||
try:
|
||||
LOG.info(_LI("Adding security group %(security_group_id)s to "
|
||||
"port %(port_id)s"),
|
||||
LOG.info(_LI("Removing security group %(security_group_id)s "
|
||||
"from port %(port_id)s"),
|
||||
{'security_group_id': security_group_id,
|
||||
'port_id': port['id']})
|
||||
neutron.update_port(port['id'], {'port': updated_port})
|
||||
|
|
Loading…
Reference in New Issue