傀儡儀表板:匯入報表時格式不匹配

傀儡儀表板:匯入報表時格式不匹配

全新的 puppet-dashboard 2.0.0-beta1 無法匯入任何報告:delayed_job 工作者抱怨:

Importing report at 2015-10-01 04:55 UTC
  Attribute was supposed to be a Array, but was a ActiveSupport::HashWithIndifferentAccess
  Backtrace
    app/models/report.rb:134:in `create_from_yaml'

傀儡客戶端版本是:4.2.2

它看起來格式不匹配,但我發現的唯一“格式”指令是:

preferred_serialization_format = pson

儀表板日誌很簡單:

2015-10-01T08:09:16+0200: [Worker(delayed_job.1 host:puppet pid:19415)] Class#create_from_yaml completed after 0.0752
2015-10-01T08:09:16+0200: [Worker(delayed_job.1 host:puppet pid:19415)] 1 jobs processed at 11.1567 j/s, 0 failed ...

我缺什麼?

答案1

截至 2015 年 10 月,為了讓 puppet-dashboard 接受 puppet4 格式的報告,您必須取得拉取請求 #329。

這解決了我的問題。

相關內容