incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject [PATCH 6/6] rhevm_client (create_vm): file path does not contain ':', but contents may
Date Wed, 28 Sep 2011 22:28:36 GMT
From: David Lutterkort <lutter@redhat.com>

The regexp we pass in to indicate how to split the file path/file content
string should allow for ':' in the file contents.

Signed-off-by: David Lutterkort <lutter@redhat.com>
---
 .../lib/deltacloud/drivers/rhevm/rhevm_client.rb   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb b/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb
index b6704b0..4e31027 100644
--- a/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb
+++ b/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb
@@ -125,7 +125,7 @@ module RHEVM
                 custom_property({
                   :name => "floppyinject",
                   :value => "#{RHEVM::FILEINJECT_PATH}:#{Base64.decode64(opts[:user_data])}",
-                  :regexp => "^.*:.*$"})
+                  :regexp => "^([^:]+):(.*)$"})
               }
             else
               raise BackendVersionUnsupportedException.new
-- 
1.7.6


Mime
View raw message