diff options
| author | Yun Mao <yunmao@gmail.com> | 2012-08-27 16:45:36 -0400 |
|---|---|---|
| committer | Yun Mao <yunmao@gmail.com> | 2012-08-27 16:47:59 -0400 |
| commit | 27f6e0db0d1e7ae18a3ac4edff86b0044c2b7a5b (patch) | |
| tree | 7feb4853b7bf68264a5b9dd4674f3f1b8c129c88 | |
| parent | 0d1e9ef251ce91d72d9671c5b4c8c02c87205d3a (diff) | |
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
| -rw-r--r-- | nova/virt/firewall.py | 4 |
1 files 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): |
