diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2010-07-28 22:41:49 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2010-07-28 22:41:49 -0700 |
| commit | 5326d7f76b48e93bd74d9539febe1f41bbf3f286 (patch) | |
| tree | 3bff4381b30f1c1157670801f6c28a843f08e032 | |
| parent | efc6317108b09311d6830b333a36714feeb2532b (diff) | |
| download | nova-5326d7f76b48e93bd74d9539febe1f41bbf3f286.tar.gz nova-5326d7f76b48e93bd74d9539febe1f41bbf3f286.tar.xz nova-5326d7f76b48e93bd74d9539febe1f41bbf3f286.zip | |
Fix deprecation warning in AuthManager. __new__ isn't allowed to take args.
| -rw-r--r-- | nova/auth/manager.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nova/auth/manager.py b/nova/auth/manager.py index 2da53a736..2360c1a5c 100644 --- a/nova/auth/manager.py +++ b/nova/auth/manager.py @@ -24,7 +24,6 @@ import logging import os import shutil import string -import sys import tempfile import uuid import zipfile @@ -322,11 +321,10 @@ class AuthManager(object): need to be more accessible, such as vpn ips and ports. """ _instance=None - def __new__(cls, *args, **kwargs): + def __new__(cls): """Returns the AuthManager singleton""" if not cls._instance: - cls._instance = super(AuthManager, cls).__new__( - cls, *args, **kwargs) + cls._instance = super(AuthManager, cls).__new__(cls) return cls._instance def __init__(self, driver=None, *args, **kwargs): |
