From 183da1816b5fa6ac7948fe91f9b5cefb0d9ba110 Mon Sep 17 00:00:00 2001 From: Jaxon Wang Date: Thu, 29 Oct 2015 16:40:48 +0800 Subject: [PATCH] Fix magic method name in plugin.cdh.clent.type Change __getslice to a proper python magic method name. Change-Id: I037ec0ce54c9060781bc04c11c9eb3224e4ccb54 Closes-Bug: #1511256 --- sahara/plugins/cdh/client/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sahara/plugins/cdh/client/types.py b/sahara/plugins/cdh/client/types.py index 0d407a42..75428350 100644 --- a/sahara/plugins/cdh/client/types.py +++ b/sahara/plugins/cdh/client/types.py @@ -437,7 +437,7 @@ class ApiList(BaseApiObject): def __getitem__(self, i): return self.objects.__getitem__(i) - def __getslice(self, i, j): + def __getslice__(self, i, j): return self.objects.__getslice__(i, j) @classmethod