deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [2/3] git commit: RHEV-M: Removed initialization on public_addresses and added explicit rbovit requirement to gemspec
Date Tue, 21 Feb 2012 12:00:31 GMT
RHEV-M: Removed initialization on public_addresses and added explicit rbovit requirement to
gemspec


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

Branch: refs/heads/master
Commit: e582d7a07c7bea9bfaa41dc0801af8a839bd7b46
Parents: a961906
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Tue Feb 21 13:01:03 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Tue Feb 21 13:01:15 2012 +0100

----------------------------------------------------------------------
 server/deltacloud-core.gemspec                     |    2 +-
 .../lib/deltacloud/drivers/rhevm/rhevm_driver.rb   |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/e582d7a0/server/deltacloud-core.gemspec
----------------------------------------------------------------------
diff --git a/server/deltacloud-core.gemspec b/server/deltacloud-core.gemspec
index 9b55355..d470849 100644
--- a/server/deltacloud-core.gemspec
+++ b/server/deltacloud-core.gemspec
@@ -77,7 +77,7 @@ Gem::Specification.new do |s|
 
 # dependencies for various cloud providers:
 # RHEV-M
-  s.add_dependency('rbovirt')
+  s.add_dependency('rbovirt', '>=0.0.6')
 
 # Amazon EC2 S3
   s.add_dependency('aws', '>=2.5.4')

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/e582d7a0/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
index 7fa4c91..c4d4386 100644
--- a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
+++ b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
@@ -234,10 +234,10 @@ class RHEVMDriver < Deltacloud::BaseDriver
                                    :hwp_cpu => inst.cores,
                                    :hwp_storage => "#{storage_size}"
     )
-    public_addresses = []
+
     # First try to get IP address from RHEV-M. This require rhev-agent package
     # installed on guest
-    public_addresses = inst.ips.map { |ip| InstanceAddress.new(ip, :type => :ipv4) } unless
inst.ips.empty?
+    public_addresses = inst.ips.map { |ip| InstanceAddress.new(ip, :type => :ipv4) }
 
     # ConfServer will overide the IP address returned by RHEV-M guest agent
     if ENV['CONFIG_SERVER_ADDRESS']


Mime
View raw message