From 27f6e0db0d1e7ae18a3ac4edff86b0044c2b7a5b Mon Sep 17 00:00:00 2001 From: Yun Mao Date: Mon, 27 Aug 2012 16:45:36 -0400 Subject: Add the self parameter to NoopFirewallDriver methods Following the Python coding convention even though the current code works with the *args magic. Part of bug 1037183 Change-Id: I2be815a098913b5879d0d9b3563a55431408431c --- nova/virt/firewall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/virt/firewall.py b/nova/virt/firewall.py index 77f7b3054..1da76edeb 100644 --- a/nova/virt/firewall.py +++ b/nova/virt/firewall.py @@ -523,10 +523,10 @@ class IptablesFirewallDriver(FirewallDriver): class NoopFirewallDriver(object): """Firewall driver which just provides No-op methods.""" - def __init__(*args, **kwargs): + def __init__(self, *args, **kwargs): pass - def _noop(*args, **kwargs): + def _noop(self, *args, **kwargs): pass def __getattr__(self, key): -- cgit