Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crud update fix #481

Merged
3 commits merged into from
Jun 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sdk/python/core/ydk/services/crud_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from .meta_service import MetaService
import logging
import importlib
import operator


class CRUDService(Service):
Expand Down Expand Up @@ -206,7 +207,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 link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. Need to import the operator module. This is causing the CI to fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the change in the same commit. Thanks.


# copy over the keys
for key_member in entity._meta_info().key_members():
Expand Down