webapp/app/views/scripts/import_chef.html.erb in cloud-toaster-1.1.5 vs webapp/app/views/scripts/import_chef.html.erb in cloud-toaster-1.1.6
- old
+ new
@@ -29,11 +29,15 @@
# retrieve list of available cookbooks from opscode
if param("cookbook") != ""
cb_name = param("cookbook")
if !available_cookbook_versions[cb_name] || available_cookbook_versions[cb_name].empty?
+ begin
available_cookbook_versions[cb_name] =
ChefUtil.available_cookbook_versions(cb_name)
+ rescue => ex
+ flash[:warn] = ex
+ end
end
end
# retrieve list of available recipes for a specific cookbook
if param("loadOpsCodeRecipes") != ""