|
|
@ -184,7 +184,7 @@ from ansible.module_utils.network.junos.junos import get_diff, load_config, get_
|
|
|
|
from ansible.module_utils.network.junos.junos import commit_configuration, discard_changes, locked_config
|
|
|
|
from ansible.module_utils.network.junos.junos import commit_configuration, discard_changes, locked_config
|
|
|
|
from ansible.module_utils.network.junos.junos import junos_argument_spec, load_configuration, get_connection, tostring
|
|
|
|
from ansible.module_utils.network.junos.junos import junos_argument_spec, load_configuration, get_connection, tostring
|
|
|
|
from ansible.module_utils.six import string_types
|
|
|
|
from ansible.module_utils.six import string_types
|
|
|
|
from ansible.module_utils._text import to_native
|
|
|
|
from ansible.module_utils._text import to_native, to_text
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
from lxml.etree import Element, fromstring
|
|
|
|
from lxml.etree import Element, fromstring
|
|
|
@ -362,10 +362,11 @@ def main():
|
|
|
|
'comment': module.params['comment']
|
|
|
|
'comment': module.params['comment']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if module.params['confirm'] > 0:
|
|
|
|
confirm = module.params['confirm']
|
|
|
|
|
|
|
|
if confirm > 0:
|
|
|
|
kwargs.update({
|
|
|
|
kwargs.update({
|
|
|
|
'confirm': True,
|
|
|
|
'confirm': True,
|
|
|
|
'confirm_timeout': module.params['confirm']
|
|
|
|
'confirm_timeout': to_text(confirm, errors='surrogate_then_replace')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
commit_configuration(module, **kwargs)
|
|
|
|
commit_configuration(module, **kwargs)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|