From ebc1b4975aa808774792009797e3bab0df36d33b Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 11 May 2018 18:38:26 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=A7=98=E9=92=A5=E5=8E=BB=E6=8E=89=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/models/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/models/base.py b/apps/assets/models/base.py index cdb08f52c..11afd92cf 100644 --- a/apps/assets/models/base.py +++ b/apps/assets/models/base.py @@ -112,7 +112,7 @@ class AssetUser(models.Model): def auto_gen_auth(self): password = str(uuid.uuid4()) private_key, public_key = ssh_key_gen( - username=self.username, password=password + username=self.username ) self.set_auth(password=password, private_key=private_key,