mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Actually fix eos_facts feature detection (#43155)
This commit is contained in:
@@ -213,12 +213,13 @@ class Cliconf(CliconfBase):
|
||||
if check_rc:
|
||||
raise
|
||||
out = getattr(e, 'err', e)
|
||||
out = to_text(out, errors='surrogate_or_strict')
|
||||
|
||||
if out is not None:
|
||||
try:
|
||||
out = json.loads(out)
|
||||
except ValueError:
|
||||
out = to_text(out, errors='surrogate_or_strict').strip()
|
||||
out = out.strip()
|
||||
|
||||
responses.append(out)
|
||||
return responses
|
||||
|
||||
Reference in New Issue
Block a user