From 7fe23510d3326d273cabac84c52809dacca73eca Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 1 Jan 2016 07:30:26 +0000 Subject: console: display paused commands properly Running commands can be "paused" (actually, they're stopped), so we must display them correctly when attempting to encode them in the correct format instead of barfing when we attempt to call the 'encode' method on a Hash object. --- bin/dtas-console | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/dtas-console b/bin/dtas-console index 909f307..0f0db7e 100755 --- a/bin/dtas-console +++ b/bin/dtas-console @@ -151,6 +151,7 @@ begin elsif cur['paused'] && infile = cur['current_paused'] fmt = '(paused)' paused = true + infile = infile['command'] if Hash === infile if Array === infile infile, elapsed = infile elapsed = elapsed.to_i -- cgit v1.2.3-24-ge0c7