Skip to content

Instantly share code, notes, and snippets.

@UshF
Created November 5, 2013 19:50
Show Gist options
  • Save UshF/7325033 to your computer and use it in GitHub Desktop.
Save UshF/7325033 to your computer and use it in GitHub Desktop.
hmmm
chefspec | 51: case node["swift"]["swauth-source"]
chefspec | 52: when "package"
chefspec | 53>> platform_options["swauth_packages"].each do |pkg|
chefspec | 54: package pkg do
chefspec | 55: action :install
chefspec | 56: only_if { node["swift"]["authmode"] == "swauth" }
chefspec | 57: end
chefspec | 58: end
chefspec | 59: when "git"
chefspec | 60: git "#{Chef::Config[:file_cache_path]}/swauth" do
chefspec | 61: repository node["swift"]["swauth_repository"]
chefspec | 62: revision node["swift"]["swauth_version"]
chefspec | ================================================================================
chefspec | Recipe Compile Error in /home/oisin/GitRepos/openstack-object-storage/recipes/proxy-server.rb
chefspec | ================================================================================
chefspec | NoMethodError
chefspec | -------------
chefspec | undefined method `each' for "swauth":String
chefspec | Cookbook Trace:
chefspec | ---------------
chefspec | /home/oisin/GitRepos/openstack-object-storage/recipes/proxy-server.rb:53:in `from_file'
chefspec | /home/oisin/GitRepos/openstack-object-storage/spec/proxy_spec.rb:21:in `block (3 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment