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,17 +56,35 @@ public class Deployment implements Serializable {
@Override
public String toString() {
return "Deployment{" +
"nodeName='" + nodeName + '\'' +
", locationName='" + locationName + '\'' +
", imageProviderId='" + imageProviderId + '\'' +
", hardwareProviderId='" + hardwareProviderId + '\'' +
", isDeployed='" + isDeployed.toString() + '\'' +
", nodeAccessToken='" + nodeAccessToken + '\'' +
", number='" + number + '\'' +
", paCloud='" + paCloud.getNodeSourceNamePrefix() + '\'' +
", task='" + task.getName() + '\'' +
", byonNode='" + byonNode.toString() + '\'' +
'}';
switch (deploymentType) {
case IAAS:
return "Deployment{" +
"nodeName='" + nodeName + '\'' +
", locationName='" + locationName + '\'' +
", imageProviderId='" + imageProviderId + '\'' +
", hardwareProviderId='" + hardwareProviderId + '\'' +
", isDeployed='" + isDeployed.toString() + '\'' +
", nodeAccessToken='" + nodeAccessToken + '\'' +
", number='" + number + '\'' +
", paCloud='" + paCloud.getNodeSourceNamePrefix() + '\'' +
", 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() + '\'' +
'}';
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