diff options
| author | Yun Mao <yunmao@gmail.com> | 2012-10-28 21:30:40 -0400 |
|---|---|---|
| committer | Yun Mao <yunmao@gmail.com> | 2012-10-28 21:30:40 -0400 |
| commit | 9ff6819461df19a3088435e9d3ee3050e129b3cf (patch) | |
| tree | 23d40ade6ca4130a2c1787cd0c396559b976aabd | |
| parent | d1f6cb8b51f7fd7dd4208aca8e39eaaadbb90956 (diff) | |
| download | nova-9ff6819461df19a3088435e9d3ee3050e129b3cf.tar.gz nova-9ff6819461df19a3088435e9d3ee3050e129b3cf.tar.xz nova-9ff6819461df19a3088435e9d3ee3050e129b3cf.zip | |
Fix getattr usage
Class 'object' has no '__getattr__' member as pylint pointed out.
Use the getattr function.
Change-Id: I38c6075ac477e2fe33870bed64b0e5e986175305
| -rw-r--r-- | nova/virt/vmwareapi/vim.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/vmwareapi/vim.py b/nova/virt/vmwareapi/vim.py index d8684ce7c..442f3a113 100644 --- a/nova/virt/vmwareapi/vim.py +++ b/nova/virt/vmwareapi/vim.py @@ -103,7 +103,7 @@ class Vim: def __getattr__(self, attr_name): """Makes the API calls and gets the result.""" try: - return object.__getattr__(self, attr_name) + return getattr(self, attr_name) except AttributeError: def vim_request_handler(managed_object, **kwargs): |
