From aa127474691747868f7fd0af703e52a3322d82d8 Mon Sep 17 00:00:00 2001 From: --global <--global> Date: Thu, 15 Dec 2022 09:15:54 -0600 Subject: [PATCH] Fix some formatting --- basic_management.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basic_management.py b/basic_management.py index c4f2c87..b687fea 100644 --- a/basic_management.py +++ b/basic_management.py @@ -11,9 +11,9 @@ def docker_info(): raw_info = getoutput('docker ps') # Header: "CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES" (with way more spaces) header = raw_info[:raw_info.find('\n')+1] - header_indices = {'CONTAINER ID': header.find('CONTAINER ID'), 'IMAGE': header.find('IMAGE'), 'COMMAND': header.find('COMMAND'), \ - 'CREATED': header.find('CREATED'), \ - 'STATUS': header.find('STATUS'), 'PORTS': header.find('PORTS'), 'NAMES': header.find('NAMES')} + header_indices = {'CONTAINER ID': header.find('CONTAINER ID'), 'IMAGE': header.find('IMAGE'), \ + 'COMMAND': header.find('COMMAND'), 'CREATED': header.find('CREATED'), 'STATUS': header.find('STATUS'), \ + 'PORTS': header.find('PORTS'), 'NAMES': header.find('NAMES')} # Remove header (example above) raw_info = raw_info[raw_info.find('\n')+1:]