summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2014-06-26 17:49:20 -0400
committerBryan McLellan <btm@loftninjas.org>2014-06-26 17:49:20 -0400
commit40abdbc9486980be9889144d1e94225dc89e81e7 (patch)
tree612a5c88ef64793144dc3bb994d1ac2d013ede77
parent5c68fa0077160677ab610a6fc6a8b07546a20440 (diff)
downloadchef-40abdbc9486980be9889144d1e94225dc89e81e7.tar.gz
add a comment about incompatible architectures
-rw-r--r--lib/chef/provider/windows_script.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/windows_script.rb b/lib/chef/provider/windows_script.rb
index efe0a81732..e600bb2837 100644
--- a/lib/chef/provider/windows_script.rb
+++ b/lib/chef/provider/windows_script.rb
@@ -36,6 +36,7 @@ class Chef
@is_wow64 = wow64_architecture_override_required?(run_context.node, target_architecture)
+ # if the user wants to run the script 32 bit && we are on a 64bit windows system && we are running a 64bit ruby ==> fail
if ( target_architecture == :i386 ) && node_windows_architecture(run_context.node) == :x86_64 && !is_i386_process_on_x86_64_windows?
raise Chef::Exceptions::Win32ArchitectureIncorrect,
"Support for the i386 architecture from a 64-bit Ruby runtime is not yet implemented"