From 01da04a0a7eff4c52bd0e35d404545f9a413b602 Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Mon, 13 Nov 2017 12:44:42 +0100 Subject: [PATCH] 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 Change-Id: If525313c63c4553abe8bea6f2bfaf75431ed18ea Closes-bug: 1731889 --- nova/network/security_group/neutron_driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/network/security_group/neutron_driver.py b/nova/network/security_group/neutron_driver.py index fa46461b058e..c3167c422796 100644 --- a/nova/network/security_group/neutron_driver.py +++ b/nova/network/security_group/neutron_driver.py @@ -527,7 +527,7 @@ class SecurityGroupAPI(security_group_base.SecurityGroupBase): updated_port = {'security_groups': port['security_groups']} try: - LOG.info("Adding security group %(security_group_id)s to " + LOG.info("Removing security group %(security_group_id)s from " "port %(port_id)s", {'security_group_id': security_group_id, 'port_id': port['id']})