From c75d6955f6209dbee70f418d072ef3088aac08d9 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Tue, 13 Jun 2017 21:42:00 +0200 Subject: [PATCH] On pipe le stdout ... --- users/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/models.py b/users/models.py index 722229c..c0af8f7 100644 --- a/users/models.py +++ b/users/models.py @@ -39,7 +39,7 @@ from django.contrib.auth.models import AbstractBaseUser, BaseUserManager import subprocess def apply(cmd): - return subprocess.Popen(cmd, stdin=subprocess.PIPE) + return subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE) def mac_from_ip(ip): cmd = ['/usr/sbin/arp','-na',ip]