mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #15148 from megaclite/develop
Fixed put method in swift module
This commit is contained in:
commit
44fe6630a6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user