[trivial] fix relation_set handling problem

This commit is contained in:
James Page 2013-09-24 12:29:07 +01:00
parent e4c9c49d22
commit fc58917395
2 changed files with 3 additions and 3 deletions

View File

@ -170,10 +170,10 @@ def relation_set(**kwargs):
]
args = []
for k, v in kwargs.items():
if k == 'rid':
if k == 'rid' and v:
cmd.append('-r')
cmd.append(v)
else:
elif k != 'rid':
args.append('{}={}'.format(k, v))
cmd += args
subprocess.check_call(cmd)

View File

@ -1 +1 @@
22
25