Skip to content

Commit

Permalink
Fix for issue Juniper#620 (Juniper#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidanandpujar authored Oct 17, 2023
1 parent 4f47c50 commit bd6d0b3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
from jnpr.junos.utils.sw import SW
from jnpr.junos import exception as pyez_exception
from ncclient.operations.errors import TimeoutExpiredError
from ansible.module_utils.common.validation import check_type_dict

# Standard library imports
from argparse import ArgumentParser
Expand Down Expand Up @@ -932,7 +933,7 @@ def parse_arg_to_list_of_dicts(self,
# This might be a keyword1=value1 keyword2=value2 type string.
# The _check_type_dict method will parse this into a dict for us.
try:
kwargs = self._check_type_dict(kwargs)
kwargs = check_type_dict(kwargs)
except TypeError as exc:
self.fail_json(msg="The value of the %s option (%s) is "
"invalid. Unable to translate into "
Expand All @@ -955,7 +956,7 @@ def parse_arg_to_list_of_dicts(self,
# This might be a keyword1=value1 keyword2=value2 type string.
# The _check_type_dict method will parse this into a dict.
try:
kwarg = self._check_type_dict(kwarg)
kwarg = check_type_dict(kwarg)
except TypeError as exc:
self.fail_json(msg="The value of the %s option (%s) is "
"invalid. Unable to translate into a "
Expand Down

0 comments on commit bd6d0b3

Please sign in to comment.