incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject git commit: refs/heads/vim51_win8 - Use value() instead of toString() to convert guestOsIdentifier.
Date Tue, 26 Feb 2013 21:31:19 GMT
Updated Branches:
  refs/heads/vim51_win8 39af8a3a1 -> 610088fb2


Use value() instead of toString() to convert guestOsIdentifier.

Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/610088fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/610088fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/610088fb

Branch: refs/heads/vim51_win8
Commit: 610088fb2d56e0d9c43851910636135b542d1228
Parents: 39af8a3
Author: Min Chen <min.chen@citrix.com>
Authored: Tue Feb 26 13:29:02 2013 -0800
Committer: Min Chen <min.chen@citrix.com>
Committed: Tue Feb 26 13:29:02 2013 -0800

----------------------------------------------------------------------
 .../hypervisor/vmware/resource/VmwareResource.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/610088fb/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
index c5b812b..580b4a8 100755
--- a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
+++ b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
@@ -2103,7 +2103,7 @@ public class VmwareResource implements StoragePoolResource, ServerResource,
Vmwa
                     assert (vmSpec.getMinSpeed() != null) && (rootDiskDataStoreDetails
!= null);
                     if (!hyperHost.createBlankVm(vmName, vmSpec.getCpus(), vmSpec.getMaxSpeed().intValue(),
                     vmSpec.getMinSpeed(), vmSpec.getLimitCpuUse(),(int)(vmSpec.getMaxRam()/(1024*1024)),
ramMb,
-                    translateGuestOsIdentifier(vmSpec.getArch(), vmSpec.getOs()).toString(),
rootDiskDataStoreDetails.first(), false)) {
+                    translateGuestOsIdentifier(vmSpec.getArch(), vmSpec.getOs()).value(),
rootDiskDataStoreDetails.first(), false)) {
                         throw new Exception("Failed to create VM. vmName: " + vmName);
                     }
                 }


Mime
View raw message