diff options
| author | Jason Kölker <jason@koelker.net> | 2011-12-02 13:17:43 -0600 |
|---|---|---|
| committer | Jason Kölker <jason@koelker.net> | 2011-12-02 13:17:43 -0600 |
| commit | 94261f4f6dec2c30124fb117118fb271ea13c95a (patch) | |
| tree | 60c35aa102c67b1f39eb8349bf5911ecceae56ed /openstack | |
| parent | a71658d1f62fcee63cf55cc6ef7a3f1a13bfee56 (diff) | |
| download | oslo-94261f4f6dec2c30124fb117118fb271ea13c95a.tar.gz oslo-94261f4f6dec2c30124fb117118fb271ea13c95a.tar.xz oslo-94261f4f6dec2c30124fb117118fb271ea13c95a.zip | |
import should not return an instance of the class
Diffstat (limited to 'openstack')
| -rw-r--r-- | openstack/common/utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openstack/common/utils.py b/openstack/common/utils.py index cbc45fd..1faeab5 100644 --- a/openstack/common/utils.py +++ b/openstack/common/utils.py @@ -159,8 +159,7 @@ def import_object(import_str): __import__(import_str) return sys.modules[import_str] except ImportError: - cls = import_class(import_str) - return cls() + return import_class(import_str) def isotime(at=None): |
