summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMaurizio Lombardi <mlombard@redhat.com>2019-10-15 11:09:05 +0200
committerGitHub <noreply@github.com>2019-10-15 11:09:05 +0200
commit6e3146fa514042938549d7b0f17724a7aa759e17 (patch)
tree99752234cae1ae7b6efc342f5b5a984060ff4802 /scripts
parent2a71cece17fcdd40bc022ed1fc009e6f5b9415e8 (diff)
parenta93c8fb860fc11261a5fb11afcd94c66ab865344 (diff)
downloadtargetcli-6e3146fa514042938549d7b0f17724a7aa759e17.tar.gz
Merge pull request #151 from gonzoleeman/fix-daemon-and-python-3.7-issues-v2
Fix daemon and python 3.7 issues v2
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/targetcli5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/targetcli b/scripts/targetcli
index b7a2467..cb97b2b 100755
--- a/scripts/targetcli
+++ b/scripts/targetcli
@@ -151,7 +151,7 @@ def call_daemon(shell, req):
while amount_received < amount_expected:
data = sock.recv(1024)
amount_received += len(data)
- print(data, end ="")
+ print(data.decode(), end ="")
sock.send(b'-END@OF@DATA-')
sock.close()
@@ -218,7 +218,8 @@ def main():
use_daemon = True
if use_daemon:
- call_daemon(shell, get_arguments())
+ call_daemon(shell, get_arguments().encode())
+ # does not return
try:
root_node = UIRoot(shell, as_root=is_root)