Skip to content

Commit

Permalink
bindings/python: Add target to put_symlink()
Browse files Browse the repository at this point in the history
Call did not support a symlink target.

Fixes #1933
  • Loading branch information
chu11 committed Jan 18, 2019
1 parent 372d41b commit c5360bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bindings/python/flux/kvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def put_unlink(flux_handle, key):
return RAW.flux_kvs_txn_unlink(flux_handle.aux_txn, 0, key)


def put_symlink(flux_handle, key):
def put_symlink(flux_handle, key, target):
if flux_handle.aux_txn is None:
flux_handle.aux_txn = RAW.flux_kvs_txn_create()
return RAW.flux_kvs_txn_symlink(flux_handle.aux_txn, 0, key)
return RAW.flux_kvs_txn_symlink(flux_handle.aux_txn, 0, key, target)


def commit(flux_handle, flags=0):
Expand Down

0 comments on commit c5360bb

Please sign in to comment.