cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kis...@apache.org
Subject [3/4] git commit: updated refs/heads/4.4-forward to 508e3e2
Date Mon, 05 May 2014 06:54:43 GMT
CLOUDSTACK-6463: password is not set for VMs created from password enabled template


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

Branch: refs/heads/4.4-forward
Commit: ce3074e9a23e71855798cb5decd01d7f9958f6c0
Parents: 489bb0c
Author: Harikrishna Patnala <harikrishna.patnala@citrix.com>
Authored: Mon Apr 21 12:14:22 2014 +0530
Committer: Kishan Kavala <kishan@cloud.com>
Committed: Mon May 5 12:11:28 2014 +0530

----------------------------------------------------------------------
 api/src/com/cloud/vm/VirtualMachineProfile.java | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ce3074e9/api/src/com/cloud/vm/VirtualMachineProfile.java
----------------------------------------------------------------------
diff --git a/api/src/com/cloud/vm/VirtualMachineProfile.java b/api/src/com/cloud/vm/VirtualMachineProfile.java
index c098e85..29f3164 100644
--- a/api/src/com/cloud/vm/VirtualMachineProfile.java
+++ b/api/src/com/cloud/vm/VirtualMachineProfile.java
@@ -53,6 +53,23 @@ public interface VirtualMachineProfile {
         public String getName() {
             return name;
         }
+
+        @Override
+        public int hashCode() {
+            return this.getName() != null ? this.getName().hashCode() : 0;
+        }
+
+        @Override
+        public boolean equals(Object obj) {
+            if (this == obj)
+                return true;
+            if (obj == null)
+                return false;
+            if (getClass() != obj.getClass())
+                return false;
+            Param other = (Param) obj;
+            return (other.getName().equals(this.getName()));
+        }
     }
 
     String getHostName();


Mime
View raw message