softlayer / softlayer-object-storage-python

SoftLayer Object Storage Python Client
Other
19 stars 30 forks source link

is_dir() AttributeError: StorageObjectModel instance has no attribute 'content_type' #20

Closed sleerssen closed 9 years ago

sleerssen commented 10 years ago

Looks like the line:

        return self.model.content_type in ['text/directory',
                                           'application/directory']

should be:

        return self.model['content_type'] in ['text/directory',
                                              'application/directory']
briancline commented 9 years ago

Thanks, Scott! A fix and unit test for this has been merged.