Re: Zone in RegisterTemplateCmd API

2015-09-27 Thread Rajani Karuturi
so many if-else statements :) I would prefer making zoneid optional and defaulting it to -1. simple and clear. ~Rajani On 26-Sep-2015, at 1:34 am, Boris Schrijver wrote: > Hi Patrick, > > We're using S3 and are facing the same issues. > > This would indeed be a very good idea. Though I

Re: Zone in RegisterTemplateCmd API

2015-09-27 Thread Patrick Dube
Hey Boris, I think that is a good alternative. It would make the API a bit more explicit, and improve the support for cross zone templates. I will log it as an improvement in JIRA. Regards, Patrick On Fri, Sep 25, 2015 at 4:05 PM Boris Schrijver wrote: > Hi Patrick, > > We're using S3 and are

Re: Zone in RegisterTemplateCmd API

2015-09-25 Thread Boris Schrijver
Hi Patrick, We're using S3 and are facing the same issues. This would indeed be a very good idea. Though I think it will also remove a kind of safety check by making it optional. The solution would be to make zoneId optional and add a optional boolean variable crossZones. If zoneId is empty and

Zone in RegisterTemplateCmd API

2015-09-25 Thread Patrick Dube
Hey guys/gals, I am using Swift as secondary storage, which is cross zones. To register templates, there is a mandatory zoneid field. I have found that if i put zoneid=-1, it will work (mark the templates as cross zones), but it is very unintuitive. This also causes problems using a tool like Terr