camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [2/8] camel git commit: Upgrade DigitalOcean client and related bundle to version 2.10
Date Wed, 07 Jun 2017 07:26:30 GMT
Upgrade DigitalOcean client and related bundle to version 2.10


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/991c3e8b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/991c3e8b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/991c3e8b

Branch: refs/heads/master
Commit: 991c3e8bb2037ade2af610ef081a38b2f5870e1f
Parents: 5714b75
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Wed Jun 7 08:33:51 2017 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Wed Jun 7 09:14:04 2017 +0200

----------------------------------------------------------------------
 .../producer/DigitalOceanTagsProducer.java      | 22 --------------------
 parent/pom.xml                                  |  4 ++--
 2 files changed, 2 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/991c3e8b/components/camel-digitalocean/src/main/java/org/apache/camel/component/digitalocean/producer/DigitalOceanTagsProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-digitalocean/src/main/java/org/apache/camel/component/digitalocean/producer/DigitalOceanTagsProducer.java
b/components/camel-digitalocean/src/main/java/org/apache/camel/component/digitalocean/producer/DigitalOceanTagsProducer.java
index d8d9d12..2cfd84f 100644
--- a/components/camel-digitalocean/src/main/java/org/apache/camel/component/digitalocean/producer/DigitalOceanTagsProducer.java
+++ b/components/camel-digitalocean/src/main/java/org/apache/camel/component/digitalocean/producer/DigitalOceanTagsProducer.java
@@ -48,9 +48,6 @@ public class DigitalOceanTagsProducer extends DigitalOceanProducer {
         case delete:
             deleteTag(exchange);
             break;
-        case update:
-            updateTag(exchange);
-            break;
         default:
             throw new IllegalArgumentException("Unsupported operation");
         }
@@ -97,23 +94,4 @@ public class DigitalOceanTagsProducer extends DigitalOceanProducer {
         exchange.getOut().setBody(delete);
     }
 
-    private void updateTag(Exchange exchange) throws Exception {
-        String name = exchange.getIn().getHeader(DigitalOceanHeaders.NAME, String.class);
-
-        if (ObjectHelper.isEmpty(name)) {
-            throw new IllegalArgumentException(DigitalOceanHeaders.NAME + " must be specified");
-        }
-
-        String newName = exchange.getIn().getHeader(DigitalOceanHeaders.NEW_NAME, String.class);
-
-        if (ObjectHelper.isEmpty(newName)) {
-            throw new IllegalArgumentException(DigitalOceanHeaders.NEW_NAME + " must be specified");
-        }
-
-        Tag tag = getEndpoint().getDigitalOceanClient().updateTag(name, newName);
-        LOG.trace("Update Tag [{}] ", tag);
-        exchange.getOut().setBody(tag);
-    }
-
-
 }

http://git-wip-us.apache.org/repos/asf/camel/blob/991c3e8b/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 3055d72..06c68b4 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -172,8 +172,8 @@
     <deltaspike-version>1.7.2</deltaspike-version>
     <depends-maven-plugin-version>1.3.1</depends-maven-plugin-version>
     <derby-version>10.11.1.1</derby-version>
-    <digitalocean-api-client-version>2.9</digitalocean-api-client-version>
-    <digitalocean-api-client-bundle-version>2.9_1</digitalocean-api-client-bundle-version>

+    <digitalocean-api-client-version>2.10</digitalocean-api-client-version>
+    <digitalocean-api-client-bundle-version>2.10_1</digitalocean-api-client-bundle-version>

     <disruptor-version>3.3.6</disruptor-version>
     <dnsjava-version>2.1.8</dnsjava-version>
     <dnsjava-bundle-version>2.1.8_1</dnsjava-bundle-version>


Mime
View raw message