cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [1/2] git commit: updated refs/heads/4.4 to 0c60ea2
Date Mon, 05 May 2014 12:03:40 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.4 410413606 -> 0c60ea2e0


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/df0564f1
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/df0564f1
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/df0564f1

Branch: refs/heads/4.4
Commit: df0564f14d35c02d5e745ffdea3b3e1e6d69698b
Parents: 4104136
Author: Harikrishna Patnala <harikrishna.patnala@citrix.com>
Authored: Mon Apr 21 12:14:22 2014 +0530
Committer: Daan Hoogland <daan@onecht.net>
Committed: Mon May 5 14:02:52 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/df0564f1/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