Skip to content

Commit

Permalink
Update docker compose version parsing (skyportal#147)
Browse files Browse the repository at this point in the history
update docker compose version parsing
  • Loading branch information
dmitryduev authored Oct 1, 2021
1 parent 426aa93 commit 27a6e07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kowalski.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import pathlib
from pprint import pprint
import questionary
import re
import secrets
import string
import subprocess
Expand Down Expand Up @@ -38,7 +39,7 @@
# Command to get version
["docker-compose", "--version"],
# Extract *only* the version number
lambda v: v.split()[2][:-1],
lambda v: re.search(r"\s*([\d.]+)", v).group(0).strip(),
# It must be >= 1.22.0
"1.22.0",
),
Expand Down

0 comments on commit 27a6e07

Please sign in to comment.