Skip to content

Commit

Permalink
Merge pull request #156 from dxc-martin-aksel-jensen/master
Browse files Browse the repository at this point in the history
fixed bug on rhel/centos by not expecting property `lsb_release`
  • Loading branch information
frozenice authored Nov 2, 2017
2 parents fe684d9 + 9150c53 commit 56d6c9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public INodeSet getNodes() throws ResourceModelSourceException {
}
node.setTags(tags);

if (root.has("ansible_lsb")) {
if (root.has("ansible_lsb") && root.getAsJsonObject("ansible_lsb").has("description")) {
node.setDescription(root.getAsJsonObject("ansible_lsb").get("description").getAsString());
} else {
StringBuilder sb = new StringBuilder();
Expand Down

0 comments on commit 56d6c9f

Please sign in to comment.