mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
fix junos_facts grains
This commit is contained in:
parent
96d786c9e4
commit
35842ef492
@ -7,6 +7,7 @@ Interface with a Junos device via proxy-minion.
|
|||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import logging
|
import logging
|
||||||
|
import copy
|
||||||
|
|
||||||
# Import 3rd-party libs
|
# Import 3rd-party libs
|
||||||
try:
|
try:
|
||||||
@ -73,7 +74,7 @@ def id(opts):
|
|||||||
|
|
||||||
|
|
||||||
def grains():
|
def grains():
|
||||||
thisproxy['grains'] = thisproxy['conn'].facts
|
thisproxy['grains'] = copy.deepcopy(thisproxy['conn'].facts)
|
||||||
thisproxy['grains']['version_info'] = str(thisproxy['grains']['version_info'])
|
thisproxy['grains']['version_info'] = str(thisproxy['grains']['version_info'])
|
||||||
return thisproxy['grains']
|
return thisproxy['grains']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user