0
내가 요리사 슈퍼마켓에서 다음 제조법 사용하고
이
grafana_user 'lechucico' do
user(
name: 'lechucico',
email: '[email protected]',
password: 'lechu',
isAdmin: true,
organizations: [
{ name: 'Administration', role: 'Admin' },
{ name: 'Marketing', role: 'Admin' }
]
)
action :create
end
이 오류가 발생합니다 :
나는 그것이 충돌 다음과 같은 코드를 실행하려고하면 https://supermarket.chef.io/cookbooks/grafana을
Chef::Exceptions::ValidationFailed
==> default: ----------------------------------
==> default: Option user must be a kind of [String]! You passed {"name"=>"lechucico", "email"=>"[email protected]", "password"=>"lechu", "isAdmin"=>true, "organizations"=>[{"name"=>"Administration", "role"=>"Admin"}, {"name"=>"Marketing", "role"=>"Admin"}]}.
==> default:
==> default: Cookbook Trace:
==> default: ---------------
==> default: /var/chef/cache/cookbooks/living-grafana/recipes/default.rb:50:in `block in from_file'
==> default: /var/chef/cache/cookbooks/living-grafana/recipes/default.rb:49:in `from_file'
==> default:
==> default: Relevant File Content:
==> default: ----------------------
==> default: /var/chef/cache/cookbooks/living-grafana/recipes/default.rb:
==> default:
==> default: 43: # )
==> default: 44: # action :update
==> default: 45: #end
==> default: 46:
==> default: 47: grafana_organization 'Marketing'
==> default: 48:
==> default: 49: grafana_user 'lechucico' do
==> default: 50>> user(
==> default: 51: 'name' => 'lechucico',
==> default: 52: 'email' => '[email protected]',
==> default: 53: 'password' => 'lechu',
==> default: 54: 'isAdmin' => true,
==> default: 55: 'organizations' => [
==> default: 56: { 'name' => 'Administration', 'role' => 'Admin' },
==> default: 57: { 'name' => 'Marketing', 'role' => 'Admin' }
==> default: 58: ]
==> default: 59: )
==> default:
==> default: Platform:
==> default: ---------
==> default: x86_64-linux
왜 이것이 작동하지 않습니까? 정보
일부 링크 :
https://github.com/JonathanTron/chef-grafana
인해 풀 요청이 마스터로 병합되었습니다에도 불구하고, 슈퍼마켓 주인 안에있는 코드의 어떤 자료가 없다는 사실이다https://github.com/JonathanTron/chef-grafana/pull/136
나는 sous-chef 그룹을 살펴볼 것입니다. 희망이 모든 오류를 수정! – Lechucico