Making iosxr check_args call module_util/iosxr check_args. Fixes #25501 (#26261)

pull/26448/head
James Mighion 7 years ago committed by Ganesh Nalawade
parent 5229370364
commit 1d62283796

@ -182,11 +182,13 @@ from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.netcfg import NetworkConfig, dumps
from ansible.module_utils.iosxr import load_config,get_config
from ansible.module_utils.iosxr import iosxr_argument_spec
from ansible.module_utils.iosxr import check_args as iosxr_check_args
DEFAULT_COMMIT_COMMENT = 'configured by iosxr_config'
def check_args(module, warnings):
iosxr_check_args(module, warnings)
if module.params['comment']:
if len(module.params['comment']) > 60:
module.fail_json(msg='comment argument cannot be more than 60 characters')

Loading…
Cancel
Save