You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whirr.apache.org by as...@apache.org on 2011/06/27 22:50:33 UTC

svn commit: r1140311 - in /incubator/whirr/trunk: CHANGES.txt core/src/main/java/org/apache/whirr/service/ClusterActionHandlerSupport.java

Author: asavu
Date: Mon Jun 27 20:50:32 2011
New Revision: 1140311

URL: http://svn.apache.org/viewvc?rev=1140311&view=rev
Log:
WHIRR-331. Add the ability to specify tarball URLs that are local to the remote machine (asavu)

Modified:
    incubator/whirr/trunk/CHANGES.txt
    incubator/whirr/trunk/core/src/main/java/org/apache/whirr/service/ClusterActionHandlerSupport.java

Modified: incubator/whirr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/whirr/trunk/CHANGES.txt?rev=1140311&r1=1140310&r2=1140311&view=diff
==============================================================================
--- incubator/whirr/trunk/CHANGES.txt (original)
+++ incubator/whirr/trunk/CHANGES.txt Mon Jun 27 20:50:32 2011
@@ -24,6 +24,9 @@ Trunk (unreleased changes)
 
     WHIRR-327. Upgrade to jclouds 1.0.0 (Adrian Cole and asavu)
 
+    WHIRR-331. Add the ability to specify tarball URLs that are local 
+    to the remote machine (asavu)
+
   BUG FIXES
 
     WHIRR-315. Temporary override Providers#withIds until jclouds 

Modified: incubator/whirr/trunk/core/src/main/java/org/apache/whirr/service/ClusterActionHandlerSupport.java
URL: http://svn.apache.org/viewvc/incubator/whirr/trunk/core/src/main/java/org/apache/whirr/service/ClusterActionHandlerSupport.java?rev=1140311&r1=1140310&r2=1140311&view=diff
==============================================================================
--- incubator/whirr/trunk/core/src/main/java/org/apache/whirr/service/ClusterActionHandlerSupport.java (original)
+++ incubator/whirr/trunk/core/src/main/java/org/apache/whirr/service/ClusterActionHandlerSupport.java Mon Jun 27 20:50:32 2011
@@ -153,6 +153,8 @@ public abstract class ClusterActionHandl
       } catch (URISyntaxException e) {
         throw new IOException(e);
       }
+    } else if(rawUrl != null && rawUrl.startsWith("remote://")) {
+      return rawUrl.replaceFirst("remote://", "file://");
     }
     return rawUrl;
   }