teracyhq-incubator / teracy-dev-core

teracy-dev-core extension
MIT License
1 stars 6 forks source link

@ #43 | should add weight for provisioners #46

Closed hieptranquoc closed 6 years ago

hieptranquoc commented 6 years ago

connect #43 please help me check this PR! Thank you so much!

hieptranquoc commented 6 years ago

Original data:

[TeracyDevCore::Config::Provisioners][WARN]: provisioners_settings: [{"_id"=>"0", "version"=>"13.1.31", "type"=>"chef_solo", "log_level"=>"info", "enabled"=>true}, {"_id"=>"2", "version"=>"13.1.31", "type"=>"chef_solo", "log_level"=>"info", "enabled"=>true, "weight"=>6}, {"_id"=>"1", "version"=>"13.1.31", "type"=>"chef_solo", "log_level"=>"info", "enabled"=>true, "weight"=>6}, {"_id"=>"3", "version"=>"13.1.31", "type"=>"chef_solo", "log_level"=>"info", "enabled"=>true, "weight"=>3}, {"_id"=>"4", "version"=>"13.1.31", "type"=>"chef_solo", "log_level"=>"info", "enabled"=>true, "weight"=>4}]

data after converted:

[TeracyDevCore::Config::Provisioners][INFO]: items: [{:_id=>"0", "version"=>"13.1.31", "type"=>"chef_solo", "log_level"=>"info", "enabled"=>true, :weight=>5}, {:_id=>"2", "version"=>"13.1.31", "type"=>"chef_solo", "log_level"=>"info", "enabled"=>true, :weight=>6}, {:_id=>"1", "version"=>"13.1.31", "type"=>"chef_solo", "log_level"=>"info", "enabled"=>true, :weight=>6}, {:_id=>"3", "version"=>"13.1.31", "type"=>"chef_solo", "log_level"=>"info", "enabled"=>true, :weight=>3}, {:_id=>"4", "version"=>"13.1.31", "type"=>"chef_solo", "log_level"=>"info", "enabled"=>true, :weight=>4}]
hoatle commented 6 years ago

@hieptranquoc make sure to rebase to the latest develop branch

hieptranquoc commented 6 years ago

I've updated! Please check again!