-2
Filepath:/etc/puppet/environments/learning_bb_check/modules/sdsds/templates/learning-config.erb
Line: 3
Detail: undefined method `[]' for nil:NilClass
Filepath:/etc/puppet/environments/learning_bb_check/modules/sdsds/templates/learning-config.erb
Line: 3
Detail: undefined method `[]' for nil:NilClass
你的模板假定在木偶的範圍內,還存在變數$_user_name
和$_user_pass
,既散列類型。
顯然沒有。
你自己寫了這個「學習」模塊嗎?您設計ERB模板的方法是什麼?
ERB模板[用戶] URI =主機 用戶名= <%= @_user_name [ '用戶']%> 密碼= <%= @_user_pass [ '通行證']%> – Jayanth
你是什麼問題? – mudasobwa
//,這是一個問題,還是你只是複製和粘貼錯誤輸出? –