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: EC2: Round down the float value of m2.xlarge hardware_profile (DTACLOUD-373)
Date Mon, 19 Nov 2012 11:23:55 GMT
EC2: Round down the float value of m2.xlarge hardware_profile (DTACLOUD-373)


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

Branch: refs/heads/master
Commit: 4f6725c40d2fea1d678070249dc7bdbbec11fa08
Parents: e522c5d
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Mon Nov 19 11:04:30 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Mon Nov 19 12:18:31 2012 +0100

----------------------------------------------------------------------
 server/lib/cimi/models/machine_configuration.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/4f6725c4/server/lib/cimi/models/machine_configuration.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/models/machine_configuration.rb b/server/lib/cimi/models/machine_configuration.rb
index 5f77bf7..5926915 100644
--- a/server/lib/cimi/models/machine_configuration.rb
+++ b/server/lib/cimi/models/machine_configuration.rb
@@ -52,7 +52,7 @@ class CIMI::Model::MachineConfiguration < CIMI::Model::Base
       :name => profile.name,
       :description => "Machine Configuration with #{memory} KiB "+
         "of memory and #{cpu} CPU",
-      :cpu => ( cpu if cpu ) ,
+      :cpu => ( cpu.to_i.to_s if cpu ) ,
       :created => Time.now.xmlschema,  # FIXME: DC hardware_profile has no mention about
created_at
       :memory => (memory if memory),
       :disks => (  [ { :capacity => storage, :format => (profile.storage.respond_to?(:format)
? profile.storage.format : "unknown")  } ] if storage ), #no format attr for hwp - may be
added if providers support...,


Mime
View raw message