2016-03-02 54 views
-2
Filepath:/etc/puppet/environments/learning_bb_check/modules/sdsds/templates/learning-config.erb 
Line: 3 
Detail: undefined method `[]' for nil:NilClass 
+0

ERB模板[用戶] URI =主機 用戶名= <%= @_user_name [ '用戶']%> 密碼= <%= @_user_pass [ '通行證']%> – Jayanth

+0

你是什麼問題? – mudasobwa

+0

//,這是一個問題,還是你只是複製和粘貼錯誤輸出? –

回答

0

你的模板假定在木偶的範圍內,還存在變數$_user_name$_user_pass,既散列類型。

顯然沒有。

你自己寫了這個「學習」模塊嗎?您設計ERB模板的方法是什麼?