Skip to content

Commit c909f0e

Browse files
voiletvoilet
voilet
authored and
voilet
committed
update 更新update读取key bug
1 parent b8a5673 commit c909f0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swan/views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from swan.models import Apply, SwanLog
3232
from assets.models import project_swan
3333
from assets.models import Host
34-
from mysite.salt_webconfig import auth_key
34+
from mysite.settings import auth_key
3535
from cmdb_auth.no_auth import check_auth
3636
import ast
3737
import hashlib
@@ -522,4 +522,4 @@ def SwanSelectLog(request, uuid):
522522
day = datetime.datetime.strptime(date, '%Y-%m-%d')
523523
log_data = SwanLog.objects.filter(project_uuid=uuid, swan_datetime__gte=day).order_by("-swan_datetime")
524524

525-
return render_to_response('swan/swan_log.html', locals(), context_instance=RequestContext(request))
525+
return render_to_response('swan/swan_log.html', locals(), context_instance=RequestContext(request))

0 commit comments

Comments
 (0)