mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6463: password is not set for VMs created from password enabled template
This commit is contained in:
parent
489bb0c7ed
commit
ce3074e9a2
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue