Convert BaseMO.java from Vmware SDK to vijava

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

Branch: refs/heads/vmwaresdk-to-vijava
Commit: 1846bba5f7f1885802aac445a9189960cacbd6b9
Parents: 9b09e94
Author: Hugo Trippaers <[email protected]>
Authored: Sun Sep 22 19:21:31 2013 +0800
Committer: Hugo Trippaers <[email protected]>
Committed: Sun Sep 22 19:21:31 2013 +0800

----------------------------------------------------------------------
 vmware-base/src/com/cloud/hypervisor/vmware/mo/BaseMO.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1846bba5/vmware-base/src/com/cloud/hypervisor/vmware/mo/BaseMO.java
----------------------------------------------------------------------
diff --git a/vmware-base/src/com/cloud/hypervisor/vmware/mo/BaseMO.java 
b/vmware-base/src/com/cloud/hypervisor/vmware/mo/BaseMO.java
index 0ac93e4..d5d6fee 100644
--- a/vmware-base/src/com/cloud/hypervisor/vmware/mo/BaseMO.java
+++ b/vmware-base/src/com/cloud/hypervisor/vmware/mo/BaseMO.java
@@ -46,7 +46,7 @@ public class BaseMO {
                _context = context;
                _mor = new ManagedObjectReference();
                _mor.setType(morType);
-               _mor.setValue(morValue);
+               _mor.setVal(morValue);
        }
 
        public VmwareContext getContext() {
@@ -70,7 +70,7 @@ public class BaseMO {
        }
 
        public boolean destroy() throws Exception {
-        ManagedObjectReference morTask = 
_context.getService().destroyTask(_mor);
+        ManagedObjectReference morTask = 
_context.getService().destroy_Task(_mor);
 
         boolean result = _context.getVimClient().waitForTask(morTask);
         if(result) {
@@ -87,7 +87,7 @@ public class BaseMO {
        }
 
        public boolean rename(String newName) throws Exception {
-           ManagedObjectReference morTask = 
_context.getService().renameTask(_mor, newName);
+           ManagedObjectReference morTask = 
_context.getService().rename_Task(_mor, newName);
 
         boolean result = _context.getVimClient().waitForTask(morTask);
         if(result) {

Reply via email to