Skip to content

Commit 83fe9e5

Browse files
bsantana-intcinaky-intc
authored andcommitted
commonl/__init__ and tcf: fixed bug with prpty-set
in tcf file, we were returning the value instead of sending it to the property-set function. We also needed to add 's:' in the daemon client Signed-off-by: Santana, Benjamin <[email protected]>
1 parent 0bff1bc commit 83fe9e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commonl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3615,7 +3615,7 @@ def set(self, key, value, force = True,
36153615
or value == "":
36163616
value = b"s:" + value.encode()
36173617
else:
3618-
value = value.encode()
3618+
value = b"s:" + value.encode()
36193619
elif isinstance(value, bytes):
36203620
value = b"x:" + value
36213621
else:

tcf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def _target_property_set(args):
156156
% (value, val))
157157
elif value.startswith("s:"):
158158
# string that might start with s: or empty
159-
return value.split(":", 1)[1]
159+
value = value.split(":", 1)[1]
160160
# FIXME: use commonl.cmdline_str_to_value()
161161
target.property_set(args.property, value)
162162

0 commit comments

Comments
 (0)