> +         Float targetFloat;
> +         if (targetInt != null) {
> +            scalingPolicyMap.put(scalingPolicy.getTargetType().toString(), 
> targetInt);
> +         } else if ((targetFloat = Floats.tryParse(targetString)) != null) {
> +            scalingPolicyMap.put(scalingPolicy.getTargetType().toString(), 
> targetFloat);
> +         } else {
> +            scalingPolicyMap.put(scalingPolicy.getTargetType().toString(), 
> targetString);
> +         }
> +      }
> +
> +      return jsonBinder.bindToRequest(request, scalingPoliciesList);
> +   }
> +
> +   @Override
> +   public <R extends HttpRequest> R bindToRequest(R request, Object toBind) {
> +      throw new IllegalStateException("CreateInstance is a POST operation");

See comment above

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/39/files#r7234837

Reply via email to