Skip to content

Commit

Permalink
hashicorp#9298: Use a single-word distro name
Browse files Browse the repository at this point in the history
  • Loading branch information
BR0kEN- authored and chrisroberts committed Feb 28, 2018
1 parent 4769818 commit 72664ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/vagrant/util/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ def linux_distro
if linux?
# A simplest way to get the Linux distribution name.
result = Subprocess.execute(
"python",
"-c",
"import platform;print(platform.linux_distribution()[0])"
"python",
"-c",
"import platform;print(platform.linux_distribution()[0].split(' ')[0])"
)

if result.exit_code.zero?
Expand Down

0 comments on commit 72664ea

Please sign in to comment.