Skip to content

Commit ce3074e

Browse files
Harikrishna PatnalaKishan Kavala
authored andcommitted
CLOUDSTACK-6463: password is not set for VMs created from password enabled template
1 parent 489bb0c commit ce3074e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎api/src/com/cloud/vm/VirtualMachineProfile.java‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,23 @@ public Param(String name) {
5353
public String getName() {
5454
return name;
5555
}
56+
57+
@Override
58+
public int hashCode() {
59+
return this.getName() != null ? this.getName().hashCode() : 0;
60+
}
61+
62+
@Override
63+
public boolean equals(Object obj) {
64+
if (this == obj)
65+
return true;
66+
if (obj == null)
67+
return false;
68+
if (getClass() != obj.getClass())
69+
return false;
70+
Param other = (Param) obj;
71+
return (other.getName().equals(this.getName()));
72+
}
5673
}
5774

5875
String getHostName();

0 commit comments

Comments
 (0)