Remove unnecessary container creation

While putting an object, if you specify a container that does not
exist, the container will be created for you.

Change-Id: Icfb9eed1e661360e6a7610c99b3d68e439e36dc3
This commit is contained in:
David Shrewsbury 2015-02-11 13:28:30 -08:00
parent 7e4927e7b3
commit 91bc405359
1 changed files with 0 additions and 3 deletions

View File

@ -968,9 +968,6 @@ class OpenStackCloud(object):
filename = name
if self.is_object_stale(container, name, filename, md5, sha256):
self.create_container(container)
with open(filename, 'r') as fileobj:
self.log.debug(
"swift uploading {filename} to {container}/{name}".format(