From da7cc102a39c8758068813d8d130e593c3dbd812 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 17 Dec 2015 10:52:48 +0800 Subject: [PATCH] fix null bug --- connect.py | 6 +++--- jperm/models.py | 2 +- templates/jasset/asset_add.html | 2 +- templates/jlog/log_offline.html | 4 ++-- templates/setting.html | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/connect.py b/connect.py index 171e07dba..587a5da82 100644 --- a/connect.py +++ b/connect.py @@ -579,7 +579,7 @@ class Nav(object): for asset in assets: print ' %s' % asset.hostname print - print "请输入主机名、IP或ansile支持的pattern, 多个主机:分隔, q退出" + print "请输入主机名或ansile支持的pattern, 多个主机:分隔, q退出" pattern = raw_input("\033[1;32mPattern>:\033[0m ").strip() if pattern == 'q': break @@ -621,7 +621,7 @@ class Nav(object): self.user_perm = get_group_user_perm(self.user) try: print "进入批量上传模式" - print "请输入主机名、IP或ansile支持的pattern, 多个主机:分隔 q退出" + print "请输入主机名或ansile支持的pattern, 多个主机:分隔 q退出" pattern = raw_input("\033[1;32mPattern>:\033[0m ").strip() if pattern == 'q': break @@ -674,7 +674,7 @@ class Nav(object): self.user_perm = get_group_user_perm(self.user) try: print "进入批量下载模式" - print "请输入主机名、IP或ansile支持的pattern, 多个主机:分隔,q退出" + print "请输入主机名或ansile支持的pattern, 多个主机:分隔,q退出" pattern = raw_input("\033[1;32mPattern>:\033[0m ").strip() if pattern == 'q': break diff --git a/jperm/models.py b/jperm/models.py index 00f43a1ca..425d01410 100644 --- a/jperm/models.py +++ b/jperm/models.py @@ -2,7 +2,7 @@ import datetime from django.db import models from jasset.models import Asset, AssetGroup -from juser.models import User, UserGroup +from juser.models import User, UserGroup class PermLog(models.Model): diff --git a/templates/jasset/asset_add.html b/templates/jasset/asset_add.html index b12f71dd4..ab8de9145 100644 --- a/templates/jasset/asset_add.html +++ b/templates/jasset/asset_add.html @@ -59,7 +59,7 @@ -

Tips: 管理用户为root或用户拥有NOPASSWD:ALL sudo权限的用户

+

Tips: 管理账号是服务器存在的root等高权限账号,用来推送新建系统用户