summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYun Mao <yunmao@gmail.com>2012-10-28 21:30:40 -0400
committerYun Mao <yunmao@gmail.com>2012-10-28 21:30:40 -0400
commit9ff6819461df19a3088435e9d3ee3050e129b3cf (patch)
tree23d40ade6ca4130a2c1787cd0c396559b976aabd
parentd1f6cb8b51f7fd7dd4208aca8e39eaaadbb90956 (diff)
downloadnova-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.py2
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):