Skip to content
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
4 changes: 3 additions & 1 deletion library/juniper_junos_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,9 @@ def main():

# Execute the RPC
try:
#for get-config in case of exception handling it will not display
#filters and arguments. To be added in future.
rpc = junos_module.etree.Element(rpc_string, format=format)
if rpc_string == 'get-config':
filter = junos_module.params.get('filter')
if attr is None:
Expand All @@ -522,7 +525,6 @@ def main():
junos_module.logger.debug('The "get-config" RPC executed '
'successfully.')
else:
rpc = junos_module.etree.Element(rpc_string, format=format)
if kwarg is not None:
# Add kwarg
for (key, value) in iteritems(kwarg):
Expand Down