Skip to content

Commit

Permalink
Merge pull request #384 from Vlatombe/detailed-pod-spec
Browse files Browse the repository at this point in the history
Don't display unset attributes, and show yaml
  • Loading branch information
Vlatombe authored Oct 10, 2018
2 parents 5fbdd1a + ecc2312 commit 1596c89
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -682,11 +682,16 @@ private String getContainersDescriptionForLogging() {
}
sb.append("\n");
}
if (StringUtils.isNotBlank(getYaml())) {
sb.append("yaml:\n")
.append(getYaml())
.append("\n");
}
return sb.toString();
}

private void optionalField(StringBuilder builder, String label, String value) {
if (value != null) {
if (StringUtils.isNotBlank(value)) {
if (builder.length() > 0) {
builder.append(", ");
}
Expand Down

0 comments on commit 1596c89

Please sign in to comment.