You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/11/19 12:23:55 UTC

[2/3] git commit: EC2: Round down the float value of m2.xlarge hardware_profile (DTACLOUD-373)

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 <mf...@redhat.com>
Authored: Mon Nov 19 11:04:30 2012 +0100
Committer: Michal fojtik <mf...@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...,