From e3e253c4eae1ad4117e93c07e384528675c1169e Mon Sep 17 00:00:00 2001 From: shemalathaa Date: Fri, 23 Jun 2017 07:23:59 +0000 Subject: [PATCH 1/3] crud update fix --- sdk/python/core/ydk/services/crud_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/core/ydk/services/crud_service.py b/sdk/python/core/ydk/services/crud_service.py index aa8f90ae2..e7d581eb2 100644 --- a/sdk/python/core/ydk/services/crud_service.py +++ b/sdk/python/core/ydk/services/crud_service.py @@ -206,7 +206,7 @@ def _create_update_entity_filter(self, entity): raise YPYServiceError(error_msg=err_msg) module = importlib.import_module(entity._meta_info().pmodule_name) - update_filter = getattr(module, entity._meta_info().name)() + update_filter = operator.attrgetter(entity._meta_info().name)(module)() # copy over the keys for key_member in entity._meta_info().key_members(): From 89c4f2467820f2fc30cd9a2cb09553d9bb39b815 Mon Sep 17 00:00:00 2001 From: shemalathaa Date: Mon, 26 Jun 2017 09:02:39 +0530 Subject: [PATCH 2/3] Update crud_service.py --- sdk/python/core/ydk/services/crud_service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/python/core/ydk/services/crud_service.py b/sdk/python/core/ydk/services/crud_service.py index e7d581eb2..5fcf575ff 100644 --- a/sdk/python/core/ydk/services/crud_service.py +++ b/sdk/python/core/ydk/services/crud_service.py @@ -29,6 +29,7 @@ from .meta_service import MetaService import logging import importlib +import operator class CRUDService(Service): From 660ceb21f2998fbc7c2c2dbf2459d1481d8c5d6a Mon Sep 17 00:00:00 2001 From: shemalathaa Date: Mon, 26 Jun 2017 09:03:14 +0530 Subject: [PATCH 3/3] Update crud_service.py