diff options
author | Lee Duncan <lduncan@suse.com> | 2019-10-07 11:54:56 -0700 |
---|---|---|
committer | Lee Duncan <lduncan@suse.com> | 2019-10-10 12:37:24 -0700 |
commit | 5db46b16377b18063366433f192d36bb3fb1e8df (patch) | |
tree | 1c3d8c318177e3fa8f235067048af6b279380e46 /daemon | |
parent | 2a71cece17fcdd40bc022ed1fc009e6f5b9415e8 (diff) | |
download | targetcli-5db46b16377b18063366433f192d36bb3fb1e8df.tar.gz |
Fix indention for targetclid when processing output.
The indentation was wrong, causing the daemon to only
process the last block of outout, which would only
show up with a lot of output.
Diffstat (limited to 'daemon')
-rwxr-xr-x | daemon/targetclid | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/targetclid b/daemon/targetclid index 98a6fd0..de1eede 100755 --- a/daemon/targetclid +++ b/daemon/targetclid @@ -163,9 +163,9 @@ class TargetCLI: with open('/tmp/data.txt', 'r') as f: output = f.read() - var = struct.pack('i', len(output)) - connection.sendall(var) # length of string - connection.sendall(output) # actual string + var = struct.pack('i', len(output)) + connection.sendall(var) # length of string + connection.sendall(output) # actual string def usage(): |