Skip to content

Commit 5a81607

Browse files
avazquezrdrjarry
authored andcommitted
changes: do not show implicit default values in changes
When parsing changes, check if node should be printed or not for all changes and not only for creation events.
1 parent b7c811b commit 5a81607

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sysrepo/change.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,9 @@ def parse(
6868
:arg include_deleted_values:
6969
Include deleted nodes values.
7070
"""
71+
if not node.should_print(include_implicit_defaults=include_implicit_defaults):
72+
raise Change.Skip()
7173
if operation == lib.SR_OP_CREATED:
72-
if not node.should_print(
73-
include_implicit_defaults=include_implicit_defaults
74-
):
75-
raise Change.Skip()
7674
return ChangeCreated(
7775
node.path(),
7876
_node_value(node, include_implicit_defaults),

0 commit comments

Comments
 (0)