Skip to content

Commit bd02f0c

Browse files
author
Alena Prokharchyk
committed
bug 14555: use hostName in toString() method of vmVO
status 14555: resolved fixed
1 parent 9114316 commit bd02f0c

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

core/src/com/cloud/vm/UserVmVO.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
2+
f * Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
33
*
44
* This software is licensed under the GNU General Public License v3 or later.
55
*
@@ -18,14 +18,12 @@
1818
package com.cloud.vm;
1919

2020
import java.util.HashMap;
21-
import java.util.Map;
2221

2322
import javax.persistence.Column;
2423
import javax.persistence.DiscriminatorValue;
2524
import javax.persistence.Entity;
2625
import javax.persistence.PrimaryKeyJoinColumn;
2726
import javax.persistence.Table;
28-
import javax.persistence.Transient;
2927

3028
import com.cloud.hypervisor.Hypervisor.HypervisorType;
3129
import com.cloud.uservm.UserVm;

core/src/com/cloud/vm/VMInstanceVO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ public void setDetails(Map<String, String> details) {
432432
@Override
433433
public String toString() {
434434
if (toString == null) {
435-
toString = new StringBuilder("VM[").append(type.toString()).append("|").append(instanceName).append("]").toString();
435+
toString = new StringBuilder("VM[").append(type.toString()).append("|").append(hostName).append("]").toString();
436436
}
437437
return toString;
438438
}

0 commit comments

Comments
 (0)