Skip to content

Commit

Permalink
Merge pull request #1335 from dineshbaburam91/use_filter_console
Browse files Browse the repository at this point in the history
Fixed Console' object has no attribute '_use_filter' error when executed Table/View script
  • Loading branch information
chidanandpujar authored Oct 14, 2024
2 parents e5e06e8 + fbd0b8a commit 1f78e3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/jnpr/junos/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def __init__(self, **kvargs):
self._attempts = kvargs.get("attempts", 10)
self._gather_facts = kvargs.get("gather_facts", False)
self._fact_style = kvargs.get("fact_style", "new")
self._use_filter = False
self._huge_tree = kvargs.get("huge_tree", False)
if self._fact_style != "new":
warnings.warn(
Expand Down
2 changes: 1 addition & 1 deletion lib/jnpr/junos/factory/optable.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def get(self, *vargs, **kvargs):
rpc_args["filter_xml"] = filter_xml
except Exception as ex:
logger.debug("Not able to create SAX parser input due to " "'%s'" % ex)
self.D.transform = lambda: remove_namespaces_and_spaces

self.D.transform = lambda: remove_namespaces_and_spaces
rpc_args.update(self.GET_ARGS) # copy default args
# saltstack get_table pass args as named keyword
if "args" in kvargs and isinstance(kvargs["args"], dict):
Expand Down

0 comments on commit 1f78e3f

Please sign in to comment.