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.
pull/37215/head
Sam Doran 7 years ago committed by GitHub
parent 8f2c87231f
commit 3134ba6bee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,6 +27,9 @@ description:
in the device configuration.
notes:
- 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:
lines:
description:

@ -170,7 +170,7 @@ class Config(FactsBase):
by=str(match.group(3)).strip(),
via=str(match.group(4)).strip(),
comment=None)
else:
elif entry:
entry['comment'] = line.strip()
self.facts['commits'] = entries

Loading…
Cancel
Save