- From: Steven Danna <
>
- To: <
>
- Subject: [chef] Re: COOK-3084 - wrong python on RHEL5
- Date: Thu, 6 Jun 2013 06:26:53 -0700
On 6/5/13 1:50 PM, Alex Kiernan wrote:
>
diff --git a/providers/virtualenv.rb b/providers/virtualenv.rb
>
index dfd9f4e..addb724 100644
>
--- a/providers/virtualenv.rb
>
+++ b/providers/virtualenv.rb
>
@@ -29,7 +29,8 @@ end
>
action :create do
>
unless exists?
>
Chef::Log.info("Creating virtualenv #{new_resource} at
>
#{new_resource.path}")
>
- execute "#{virtualenv_cmd} --python=#{new_resource.interpreter}
>
#{new_resource.options} #{new_resource.path}" do
>
+ interpreter = new_resource.interpreter ? "
>
--python=#{new_resource.interpreter}" : ""
>
+ execute "#{virtualenv_cmd}#{interpreter} #{new_resource.options}
>
#{new_resource.path}" do
>
user new_resource.owner if new_resource.owner
>
group new_resource.group if new_resource.group
>
end
As I mentioned in the code review, I would be +1 on this as an
intermediary step before the full fix.
--
Steven Danna
Systems Engineer, Opscode, Inc
GPG Key:
http://stevendanna.github.com/downloads/code/public.key
Attachment:
signature.asc
Description: OpenPGP digital signature
- [chef] COOK-3084 - wrong python on RHEL5, Alex Kiernan, 06/05/2013
- [chef] Re: COOK-3084 - wrong python on RHEL5, Noah Kantrowitz, 06/05/2013
- [chef] Re: COOK-3084 - wrong python on RHEL5, Steven Danna, 06/06/2013
- [chef] Re: Re: COOK-3084 - wrong python on RHEL5, Mike, 06/06/2013
- [chef] Re: Re: Re: COOK-3084 - wrong python on RHEL5, Steven Danna, 06/06/2013
- [chef] Re: Re: Re: Re: COOK-3084 - wrong python on RHEL5, Alex Kiernan, 06/06/2013
- [chef] Re: Re: Re: Re: COOK-3084 - wrong python on RHEL5, Alex Kiernan, 06/06/2013
- [chef] Re: Re: Re: Re: COOK-3084 - wrong python on RHEL5, Alex Kiernan, 06/06/2013
- [chef] Re: Re: Re: Re: Re: COOK-3084 - wrong python on RHEL5, Mike, 06/08/2013
- [chef] Re: Re: Re: Re: Re: Re: COOK-3084 - wrong python on RHEL5, Alex Kiernan, 06/08/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: COOK-3084 - wrong python on RHEL5, Mike, 06/09/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: COOK-3084 - wrong python on RHEL5, Alex Kiernan, 06/09/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: COOK-3084 - wrong python on RHEL5, Bryan McLellan, 06/10/2013
Archive powered by MHonArc 2.6.16.