Merge pull request #41221 from rallytime/bp-41211

Back-port #41211 to nitrogen
This commit is contained in:
Nicole Thomas 2017-05-12 17:48:23 -06:00 committed by GitHub
commit 2b533540fd

View File

@ -131,10 +131,9 @@ def get_serialized_facts():
# For backward compatibility. 'junos_info' is present
# only of in newer versions of facts.
if 'junos_info' in facts:
facts['junos_info']['re0']['object'] = \
dict(facts['junos_info']['re0']['object'])
facts['junos_info']['re1']['object'] = \
dict(facts['junos_info']['re1']['object'])
for re in facts['junos_info']:
facts['junos_info'][re]['object'] = \
dict(facts['junos_info'][re]['object'])
return facts