[Bugfix] 修复生成system user的问题

pull/1214/head
ibuler 2018-04-19 11:16:52 +08:00
parent 035dd16b36
commit 947f7d206a
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class AssetUser(models.Model):
def auto_gen_auth(self):
password = str(uuid.uuid4())
private_key, public_key = ssh_key_gen(
username=self.name, password=password
username=self.username, password=password
)
self.set_auth(password=password,
private_key=private_key,