Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cff0941

Browse files
benjaminwsjtimberman
authored and
jtimberman
committed
Make default attribute name more obvious.
1 parent f526b98 commit cff0941

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

attributes/default.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
# limitations under the License.
1919
#
2020

21-
# Version of python to use when installing distribute/pip
21+
# Version of python to use when installing distribute
2222
# default is '', which uses the 'python' binary.
2323
# example value = '2.6' which will use the python2.6 binary
24-
default['python']['base_version'] = ''
24+
default['python']['distribute_install_py_version'] = ''
2525

2626
default['python']['install_method'] = 'package'
2727

recipes/pip.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@
2828
not_if "which pip"
2929
end
3030

31-
base_version = node['python']['base_version']
31+
use_version = node['python']['distribute_install_py_version']
32+
3233
bash "install-pip" do
3334
cwd Chef::Config[:file_cache_path]
3435
code <<-EOF
35-
python#{base_version} distribute_setup.py
36+
python#{use_version} distribute_setup.py
3637
easy_install pip
3738
EOF
3839
not_if "which pip"

0 commit comments

Comments
 (0)