mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Do not try to add an entry if none exist (#37152)
When commit revisions are disabled, there will be no revision items returned. Add note about setting ANSIBLE_PERSISTENT_COMMAND_TIMEOUT to a higer value to avoid timeouts.
This commit is contained in:
parent
8f2c87231f
commit
3134ba6bee
2 changed files with 4 additions and 1 deletions
|
@ -27,6 +27,9 @@ description:
|
||||||
in the device configuration.
|
in the device configuration.
|
||||||
notes:
|
notes:
|
||||||
- Tested against EdgeOS 1.9.7
|
- Tested against EdgeOS 1.9.7
|
||||||
|
- Setting C(ANSIBLE_PERSISTENT_COMMAND_TIMEOUT) to 30 is recommended since
|
||||||
|
the save command can take longer than the default of 10 seconds on
|
||||||
|
some EdgeOS hardware.
|
||||||
options:
|
options:
|
||||||
lines:
|
lines:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -170,7 +170,7 @@ class Config(FactsBase):
|
||||||
by=str(match.group(3)).strip(),
|
by=str(match.group(3)).strip(),
|
||||||
via=str(match.group(4)).strip(),
|
via=str(match.group(4)).strip(),
|
||||||
comment=None)
|
comment=None)
|
||||||
else:
|
elif entry:
|
||||||
entry['comment'] = line.strip()
|
entry['comment'] = line.strip()
|
||||||
|
|
||||||
self.facts['commits'] = entries
|
self.facts['commits'] = entries
|
||||||
|
|
Loading…
Reference in a new issue