Commit 4b091744 authored by Victor Nikulshin's avatar Victor Nikulshin
Browse files

Add --no-trunc option to 'docker ps' call

Prevent docker command from adding unicode characters to its output that will
ascii string parsing inside of Fabrick command.
parent bbe7b6a5
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ import helpers as h

def docker_ps(running_only=False):
    args = '' if running_only else '-a'
    result = local('docker ps %s' % args, capture=True)
    result = local('docker ps --no-trunc %s' % args, capture=True)
    lines = result.stdout.splitlines()
    # container name is supposed to be the last column
    assert lines[0].strip().endswith('NAMES')