From 1c1f81c3733dd5b3123d5135ffda349a8c779b76 Mon Sep 17 00:00:00 2001 From: Ignasi Barrera Date: Thu, 7 Sep 2017 16:05:13 +0200 Subject: [PATCH] JCLOUDS-1258: Allow China endpoints in FormSignerV4 --- apis/sts/src/main/java/org/jclouds/aws/filters/FormSignerV4.java | 1 - 1 file changed, 1 deletion(-) diff --git a/apis/sts/src/main/java/org/jclouds/aws/filters/FormSignerV4.java b/apis/sts/src/main/java/org/jclouds/aws/filters/FormSignerV4.java index 7dfbd12ebd..ca58fb0a33 100644 --- a/apis/sts/src/main/java/org/jclouds/aws/filters/FormSignerV4.java +++ b/apis/sts/src/main/java/org/jclouds/aws/filters/FormSignerV4.java @@ -84,7 +84,6 @@ public final class FormSignerV4 implements FormSigner { /** This will only work for amazon deployments, and perhaps not all of them. */ private static List parseServiceAndRegion(String host) { - checkArgument(host.endsWith(".amazonaws.com"), "Only AWS endpoints currently supported %s", host); return Splitter.on('.').splitToList(host); } }