Commit 0a865d6c authored by Mohamed Khalil Labidi's avatar Mohamed Khalil Labidi
Browse files

Fix Deployment toString() according to node type

parent b7cf0122
Pipeline #15101 passed with stage
in 1 minute and 29 seconds
...@@ -56,6 +56,8 @@ public class Deployment implements Serializable { ...@@ -56,6 +56,8 @@ public class Deployment implements Serializable {
@Override @Override
public String toString() { public String toString() {
switch (deploymentType) {
case IAAS:
return "Deployment{" + return "Deployment{" +
"nodeName='" + nodeName + '\'' + "nodeName='" + nodeName + '\'' +
", locationName='" + locationName + '\'' + ", locationName='" + locationName + '\'' +
...@@ -66,7 +68,23 @@ public class Deployment implements Serializable { ...@@ -66,7 +68,23 @@ public class Deployment implements Serializable {
", number='" + number + '\'' + ", number='" + number + '\'' +
", paCloud='" + paCloud.getNodeSourceNamePrefix() + '\'' + ", paCloud='" + paCloud.getNodeSourceNamePrefix() + '\'' +
", task='" + task.getName() + '\'' + ", task='" + task.getName() + '\'' +
", byonNode='" + byonNode + '\'' +
'}';
case BYON:
return "Deployment{" +
"nodeName='" + nodeName + '\'' +
", locationName='" + locationName + '\'' +
", imageProviderId='" + imageProviderId + '\'' +
", hardwareProviderId='" + hardwareProviderId + '\'' +
", isDeployed='" + isDeployed.toString() + '\'' +
", nodeAccessToken='" + nodeAccessToken + '\'' +
", number='" + number + '\'' +
", paCloud='" + paCloud + '\'' +
", task='" + task.getName() + '\'' +
", byonNode='" + byonNode.toString() + '\'' + ", byonNode='" + byonNode.toString() + '\'' +
'}'; '}';
default:
return "Deployment{nodeName='" + nodeName + '}';
}
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment