mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #15953 from rallytime/bp-15148
Backport #15148 to 2014.7
This commit is contained in:
commit
5c5381b2de
@ -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