CLOUDSTACK-7871: allow VM and template details update using update APIs

Allows updating details (key/value) pair which updates entries in
vm_template_details and user_vm_details tables using updateVM and updateTemplate
APIs. This allows sys admins to update nics, controllers etc without DB hacking.

Signed-off-by: Rohit Yadav <[email protected]>

Conflicts:
        api/src/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java
        api/src/org/apache/cloudstack/api/command/user/vm/UpdateVMCmd.java
        server/src/com/cloud/template/TemplateManagerImpl.java
        server/src/com/cloud/vm/UserVmManagerImpl.java


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

Branch: refs/heads/4.4
Commit: 832fd7232c10d369d8492d6be5c1f0313afc78b9
Parents: 99261fb
Author: Rohit Yadav <[email protected]>
Authored: Mon Nov 10 18:12:37 2014 +0530
Committer: Rohit Yadav <[email protected]>
Committed: Thu Dec 11 20:02:09 2014 +0530

----------------------------------------------------------------------
 api/src/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/832fd723/api/src/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java 
b/api/src/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java
index 2754b25..dd50275 100644
--- a/api/src/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java
+++ b/api/src/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java
@@ -122,4 +122,4 @@ public abstract class BaseUpdateTemplateOrIsoCmd extends 
BaseCmd {
         Collection paramsCollection = this.details.values();
         return (Map) (paramsCollection.toArray())[0];
     }
-}
\ No newline at end of file
+}

Reply via email to