mirror of https://github.com/apache/cloudstack.git
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:
parent
421137d9f6
commit
e25690ca83
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue