> + private final ReturnStringIf2xx returnStringIf200;
> + private final ListOfKeyValuesDelimitedByBlankLinesToListOfMaps
> mapConverter;
> + private final MapToStandardDrive mapToStandardDrive;
> +
> + @Inject
> + ListOfKeyValuesDelimitedByBlankLinesToStandardDriveSet(ReturnStringIf2xx
> returnStringIf200,
> + ListOfKeyValuesDelimitedByBlankLinesToListOfMaps mapConverter,
> MapToStandardDrive mapToStandardDrive) {
> + this.returnStringIf200 = checkNotNull(returnStringIf200,
> "returnStringIf200");
> + this.mapConverter = checkNotNull(mapConverter, "mapConverter");
> + this.mapToStandardDrive = checkNotNull(mapToStandardDrive,
> "mapToStandardDrive");
> + }
> +
> + @Override
> + public Set<StandardDrive> apply(HttpResponse response) {
> + String text = returnStringIf200.apply(response);
> + if (text == null || text.trim().equals(""))
The check wasn't there initially, but I spotted the "only spaces string" when
running the live tests. That's what the API returns in some cases.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/362/files#r13038399