Srikanth and Hung, 

Thanks for the repeated reviews!

/ Johan

-----Original Message-----
From: Srikanth Revanuru [mailto:[email protected]] 
Sent: den 29 september 2015 09:29
To: Johan Mårtensson O
Cc: Hung Nguyen D; [email protected]; 
[email protected]; Hans Nordebäck
Subject: Re: [PATCH 23 of 23] pyosaf: Fix get_object_names_for_class to only 
read the class name attribute [#1406]

Johan,

 Ack for all the patches.

 Reviewed and tested. I am able to build the RPMS successfully with python 
option enabled.

/ Srikanth


----- [email protected] wrote:

> python/pyosaf/utils/immoi/__init__.py |  3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> 
> Fix the get_object_names_for_class helper in immoi to only request the 
> SaImmAttrClassName attribute when reading objects to avoid requesting 
> any runtime attributes.
> 
> diff --git a/python/pyosaf/utils/immoi/__init__.py
> b/python/pyosaf/utils/immoi/__init__.py
> --- a/python/pyosaf/utils/immoi/__init__.py
> +++ b/python/pyosaf/utils/immoi/__init__.py
> @@ -252,7 +252,8 @@ def get_object_names_for_class(class_nam
>      c_search_param.searchOneAttr.attrValue = 
> cast(pointer(c_class_name), c_void_p)
>  
>      # Create the search iterator
> -    sit = SearchIterator(_search_param=c_search_param)
> +    sit = SearchIterator(_search_param=c_search_param,
> +                         attribute_names=['SaImmAttrClassName'])
>  
>      # Return the results
>      return [s.dn for s in sit]
------------------------------------------------------------------------------
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to