From 9ff6819461df19a3088435e9d3ee3050e129b3cf Mon Sep 17 00:00:00 2001 From: Yun Mao Date: Sun, 28 Oct 2012 21:30:40 -0400 Subject: Fix getattr usage Class 'object' has no '__getattr__' member as pylint pointed out. Use the getattr function. Change-Id: I38c6075ac477e2fe33870bed64b0e5e986175305 --- nova/virt/vmwareapi/vim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit