> +
> @Payload("<ws:getDataCenter><dataCenterId>{id}</dataCenterId></ws:getDataCenter>")
> + @XMLResponseParser(GetVDCResponseHandler.class)
> + @Fallback(NullOnNotFoundOr404.class)
> + VirtualDataCenter getDataCenter(@PayloadParam("id") String identifier);
> +
> + /**
> + * Creates and saves a new, empty Virtual Data Center. Returns its
> identifier for further reference.
> + *
> + * @param vdc VDC payload containing dataCenterName, region (both
> optional)
> + * @return Version response
> + */
> + @POST
> + @Named("CreateDataCenter")
> + @MapBinder(CreateDataCenterRequestBinder.class)
> + @XMLResponseParser(VersionResponseHandler.class)
> + @Fallback(NullOnNotFoundOr404.class)
There was a recent discussion about this, and there is an agreement to don't
use these fallbacks in *write* operations such as POST or PUT. Remove this
fallback and let the method throw an exception instead of silently returning
null.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/72/files#r17229632