Merge pull request #15148 from megaclite/develop

Fixed put method in swift module
This commit is contained in:
Thomas S Hatch 2014-08-21 14:03:20 -06:00
commit 44fe6630a6

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)