nodejitsu/node-cloudfiles — Issue #24: createContainer by Sending Object - Container Name is not properly received.
Author: MeanwhileMedia
Created: 2011-12-13 23:53:32+00:00
State: open

makeContainer = new Object();
makeContainer.name = 'name';
makeContainer.cdnEnabled = true;

cloudClient.createContainer(makeContainer, function (err, newContainer) {
}

The above code does not work properly because makeContainer.name is not interpreted properly in core.js. It still treats the object as if it were a string (created container is named '[object').

My temporary fix was to change the line:
containerName = container instanceof cloudfiles.Container ? container.name : container;
to:
containerName = container.name;

Thanks for the awesome module!
-Joe