Skip to content

WAZ::Blobs::Container.list #30

Closed
gabpaquin opened this Issue Mar 26, 2013 · 2 comments

2 participants

@gabpaquin

Hello,

When I tried to pull the list of container from my blob storage account, I am getting the following error:

NoMethodError: undefined method split' for nil:NilClass
from /Users/gabriel/.rvm/gems/ruby-1.9.3-p194@r8/gems/waz-storage-1.3.2/lib/waz/storage/core_service.rb:117:in
execute'

This is because

  # Lists all the containers existing on the current storage account.
  def list_containers(options = {})
    content = execute(:get, nil, options.merge(:comp => 'list'))

in the execute call, path is set to nil.

could we set the execute methods for core_service.rb call to the following?

escaped_path = !path.nil? ? path.split("/").map{ | part | CGI.escape(part) }.join("/") : ""

Thanks

@johnnyhalife johnnyhalife added a commit that referenced this issue Mar 26, 2013
@johnnyhalife potential fix for #30 fbfd637
@johnnyhalife
Owner

Hi Gabriel,

On the commit shown above (fbfd637) I've made a potential fix for what you say. Can you please re-try? If this works, please close this issue.

@gabpaquin

Hi Johnny,

Thanks for your quick input, it works perfectly!

@gabpaquin gabpaquin closed this Mar 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.