Saltack 将元组传递给模块

问题描述

我使用的是 Saltstack 版本 2019.2.8。
我需要将以下对象传递给模块 @H_404_2@{'': [{'condition': {},'value': {'levels': (90.0,96.0)},'options': {'comment': 'desc'}}]}。

问题是模块接收到这个 @H_404_2@{'': [{'condition': {},'value': {'levels': '(90.0','96.0)': None},'options': {'comment': 'beschreibung'}}]}。 元组被转换为字符串。

这是我正在执行的命令:

@H_404_2@sudo salt 'myhost' module.set_rule_set parama 'http://urlparam.com' anonther_string  yet_another_string True '3rdStringParam'  "{'': [{'condition': {},'options': {'comment': 'beschreibung'}}]}"

你对我有什么建议吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)