傀儡代理-t有时会显示二进制文件的差异,它会弄乱我的terminal。 我怎样才能让它不显示差异?
puppet agent -t有时会显示二进制文件的差异,它会弄乱我的terminal。 我怎样才能让它不显示差异?
恐怕答案是你不能。 因为--test选项启用了show_diff ,即使在命令行中添加了--no-show_diff或show_diff = false :
puppet help agent
* --test: Enable the most common options used for testing. These are 'onetime', 'verbose', 'ignorecache', 'no-daemonize', 'no-usecacheonfailure', 'detailed-exit-codes', 'no-splay', and 'show_diff'.
布尔选项通过指定no-来取消,所以你只需要puppet agent -t --no-show_diff 。