express42 / postgresql_lwrp

Express 42 postgresql cookbook
MIT License
55 stars 16 forks source link

The python cookbook has been deprecated #44

Closed ilp416 closed 6 years ago

ilp416 commented 6 years ago

Hi. Thank you for this cookbook. But i have some troubles. IDK but I suppose what it is relies to https://supermarket.chef.io/cookbooks/python.

My fail is:

================================================================================
deiverbo.com Recipe Compile Error in /var/chef/cache/cookbooks/python/attributes/default.rb
deiverbo.com ================================================================================
deiverbo.com 
deiverbo.com NoMethodError
deiverbo.com -------------
deiverbo.com undefined method `python' for #<Chef::Node::Attribute:0x00000004897e80>
deiverbo.com 
deiverbo.com Cookbook Trace:
deiverbo.com ---------------
deiverbo.com   /var/chef/cache/cookbooks/python/attributes/default.rb:23:in `from_file'
deiverbo.com 
deiverbo.com Relevant File Content:
deiverbo.com ----------------------
deiverbo.com /var/chef/cache/cookbooks/python/attributes/default.rb:
deiverbo.com 
deiverbo.com  16:  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
deiverbo.com  17:  # See the License for the specific language governing permissions and
deiverbo.com  18:  # limitations under the License.
deiverbo.com  19:  #
deiverbo.com  20:  
deiverbo.com  21:  default['python']['install_method'] = 'package'
deiverbo.com  22:  
deiverbo.com  23>> if python['install_method'] == 'package'
deiverbo.com  24:    case platform
deiverbo.com  25:    when "smartos"
deiverbo.com  26:      default['python']['prefix_dir']         = '/opt/local'
deiverbo.com  27:    else
deiverbo.com  28:      default['python']['prefix_dir']         = '/usr'
deiverbo.com  29:    end
deiverbo.com  30:  else
deiverbo.com  31:    default['python']['prefix_dir']         = '/usr/local'
deiverbo.com  32:  end
deiverbo.com 
deiverbo.com System Info:
deiverbo.com ------------
deiverbo.com chef_version=13.2.20
deiverbo.com platform=debian
deiverbo.com platform_version=7.10
deiverbo.com ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
deiverbo.com program_name=chef-client worker: ppid=32144;start=05:58:29;
deiverbo.com executable=/opt/chefdk/bin/chef-client
dragonsmith commented 6 years ago

Hello!

Fixed by a95ed768cec74f6b54bc731396594c468c13df78