fix junos_facts grains

This commit is contained in:
rajvidhimar 2016-06-13 11:57:13 +05:30
parent 96d786c9e4
commit 35842ef492

View File

@ -7,6 +7,7 @@ Interface with a Junos device via proxy-minion.
from __future__ import absolute_import
from __future__ import print_function
import logging
import copy
# Import 3rd-party libs
try:
@ -73,7 +74,7 @@ def id(opts):
def grains():
thisproxy['grains'] = thisproxy['conn'].facts
thisproxy['grains'] = copy.deepcopy(thisproxy['conn'].facts)
thisproxy['grains']['version_info'] = str(thisproxy['grains']['version_info'])
return thisproxy['grains']