Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignoring binding states of backup, expired and free #74

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions core/lease-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ module.exports = {
lines = lease_data[i].split("\n");
for (l = 0; l < lines.length; l++) {

if (typeof lines[5] !== "undefined") {
if (
lines[5].trim() === "binding state backup;" ||
lines[5].trim() === "binding state expired;" ||
lines[5].trim() === "binding state free;"
) {
continue;
}
}


/**
* Trim whitespaces at each ends of the line
*/
Expand Down