CLOUDSTACK-6463: password is not set for VMs created from password enabled template

(cherry picked from commit 2284a95e4f)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Harikrishna Patnala 2014-04-21 12:14:22 +05:30 committed by Rohit Yadav
parent 421137d9f6
commit e25690ca83
1 changed files with 17 additions and 0 deletions

View File

@ -54,6 +54,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();