From 0dbd8538a055fb701aef05ea9145b18468525200 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 2 Jan 2018 14:03:06 -0800 Subject: [PATCH] Update return value documentation to actual behavior --- lib/vagrant/util/powershell.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/util/powershell.rb b/lib/vagrant/util/powershell.rb index fefb60571..915ae4bb5 100644 --- a/lib/vagrant/util/powershell.rb +++ b/lib/vagrant/util/powershell.rb @@ -51,7 +51,8 @@ module Vagrant # Execute a powershell command. # # @param [String] command PowerShell command to execute. - # @return [Subprocess::Result] + # @return [nil, String] Returns nil if exit code is non-zero. + # Returns stdout string if exit code is zero. def self.execute_cmd(command) validate_install! c = [