jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi <ignasi.barr...@gmail.com>
Subject Re: Issues with Updating Runlist for a Node
Date Tue, 21 May 2013 14:57:20 GMT
The list returned is immutable. To update the run list you need to
create a copy of the returned list, add there the elements you want,
and use that list to update the node.


HTH


Ignasi

On 21 May 2013 16:39, Rahul Nema <rahulnema@in.ibm.com> wrote:
> Hi,
>
> So it seems when I do this "List<String> runlist = node.getRunList();"  the
> list comes like this "recipe[java]"  when I try to add a recipe to this list
> it gets added as a normal string which seems creating this issue.
>
> recipe[java]java
> ############################### Exception caught
> null
> java.lang.UnsupportedOperationException
>         at
> com.google.common.collect.ImmutableCollection.add(ImmutableCollection.java:94)
>         at
> com.ibm.cal.systemmgm.chef.PrivateBPMChefUtils.updateNodeRunList(PrivateBPMChefUtils.java:444)
>         at com.ibm.cal.systemmgm.chef.App.main(App.java:21)
>
> I tried using " runlist = new RunListBuilder().addRecipe(recipe).build();"
> and then adding it back to list still the same issue. Can you please quickly
> help how can I build the runlist.
>
>
> With warm  regards,
>  ------------------------------------------------------------
> Rahul Nema,
> Tivoli Group
> IBM-India Software Lab,Pune
> Mo: +91-9860254300
> ------------------------------------------------------------

Mime
View raw message