Merge pull request #15953 from rallytime/bp-15148

Backport #15148 to 2014.7
This commit is contained in:
Thomas S Hatch 2014-09-19 09:50:14 -06:00
commit 5c5381b2de

View File

@ -182,7 +182,7 @@ def put(cont, path=None, local_file=None, profile=None):
'''
swift_conn = _auth(profile)
if path is not None:
if path is None:
return swift_conn.put_container(cont)
elif local_file is not None:
return swift_conn.put_object(cont, path, local_file)