summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2019-10-07 11:54:56 -0700
committerLee Duncan <lduncan@suse.com>2019-10-10 12:37:24 -0700
commit5db46b16377b18063366433f192d36bb3fb1e8df (patch)
tree1c3d8c318177e3fa8f235067048af6b279380e46 /daemon
parent2a71cece17fcdd40bc022ed1fc009e6f5b9415e8 (diff)
downloadtargetcli-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-xdaemon/targetclid6
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():