We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd70206 commit e8ca4e1Copy full SHA for e8ca4e1
plugins/modules/packaging/os/homebrew_cask.py
@@ -484,12 +484,10 @@ def _get_brew_version(self):
484
485
cmd = [self.brew_path, '--version']
486
487
- process = subprocess.run(cmd, stdout=subprocess.PIPE)
488
-
489
- process_output = process.stdout.decode()
+ process_output = subprocess.check_output(cmd)
490
491
# get version string from first line of "brew --version" output
492
- version = process_output.split('\n')[0].split(' ')[1]
+ version = process_output.decode('utf-8').split('\n')[0].split(' ')[1]
493
494
self.brew_version = version
495
0 commit comments