簡體   English   中英

Puppet在輸出中刪除定義的'message'為'

[英]Puppet remove defined 'message' as ' in output

在我的木偶客戶端,我有兩次相同的消息,我想只有一次。 示例:

Info: /Stage[main]/box::Backuppc/Notify[todo]/message: todo...
Info: /Stage[main]/box::Backuppc/Notify[todo]/message: defined 'message' as 'todo...'

我該如何刪除其中一個?

對於當前版本的Puppet,輸出

notify { "w00t": message => "foo" }

看起來像

Notice: foo
Notice: /Stage[main]/Main/Notify[w00t]/message: defined 'message' as 'foo'

這只是略微冗長。 實際上沒有辦法松開/壓制第二條消息。 雖然沒有真正的結論,但已對其進行了簡要討論

就我個人而言,我不相信這條信息可以很容易地隱藏起來(即,沒有嚴重修補Puppet)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM