Skip to content

Commit

Permalink
Merge pull request #93 from apatard/fix_output-parsing
Browse files Browse the repository at this point in the history
Fix vagrant output parsing
  • Loading branch information
konstruktoid committed Mar 29, 2022
2 parents 175fde1 + e0ab065 commit 802b861
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vagrant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,9 +940,8 @@ def _parse_machine_readable_output(self, output):
# vagrant 1.8 adds additional fields that aren't required,
# and will break parsing if included in the status lines.
# filter them out pending future implementation.
parsed_lines = list(
filter(lambda x: x[2] not in ["metadata", "ui", "action"], parsed_lines)
)
unneeded_kind = ["metadata", "ui", "action", "Description", "box-info"]
parsed_lines = list(filter(lambda x: x[2] not in unneeded_kind, parsed_lines))
return parsed_lines

def _parse_config(self, ssh_config):
Expand Down

0 comments on commit 802b861

Please sign in to comment.