From 8960b5b6fe2703ac73ff34ed2cac86f2dcbb6b58 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Tue, 13 Sep 2022 22:50:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=90=AF=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_pt/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_pt/views.py b/auto_pt/views.py index 373f47c..8a9345e 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -244,7 +244,7 @@ def do_update(request): print('更新完毕,开始重启') cid = request.GET.get('cid') flag = (cid == '') - if flag: + if not flag: subprocess.Popen('docker restart {}'.format(cid), shell=True, stdout=subprocess.PIPE, ) # out = reboot.stdout.readline().decode('utf8') # client.api.inspect_container(cid)