nodejitsu/node-cloudfiles

createContainer with String on existing cdnEnabled container

rtgibbons opened this issue · 1 comments

creating a container with just a string works. But if it already Exists and is cdnEnabled, it doesn't grab the cdnUri. See this commit for the test rtgibbons@de35b53 , here is the object it produces

{ files: [],
  client: 
   { config: 
      { auth: [Object],
        serverUrl: 'https://servers.api.rackspacecloud.com/v1.0/<Number>',
        storageUrl: 'https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_<UUID>',
        cdnUrl: 'https://cdn2.clouddrive.com/v1/MossoCloudFS_<UUID>',
        authToken: '<UUID>',
        storageToken: '<UUID>' },
     authorized: true },
  name: undefined,
  cdnEnabled: false,
  cdnUri: undefined,
  cdnSslUri: undefined,
  ttl: undefined,
  logRetention: undefined,
  count: 0,
  bytes: 0 }

(not sure what's sensitive information, removed the nubmers and uuid's)

Don't have time to explore the fix, just documenting the bug. Once we get this software pushed this week I'll try to come back and revisit

P.S. creating a container via new cloudfile.Container works fine.

Thanks! We'll get someone on it soon.