Skip to content

Commit

Permalink
fix 修复自动上报信息清空设备类型和状态信息
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed Jul 30, 2017
1 parent 12c9e56 commit e8b7579
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmdb/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def collect(request):
osver = asset_info['osver']
hostname = asset_info['hostname']
ip = asset_info['ip']
asset_type = ""
status = ""
# asset_type = ""
# status = ""
try:
host = Host.objects.get(hostname=hostname)
except Exception as msg:
Expand Down Expand Up @@ -133,8 +133,8 @@ def collect(request):
host.os = osver
host.vendor = vendor
host.ip = ip
host.asset_type = asset_type
host.status = status
# host.asset_type = asset_type
# host.status = status
host.save()
return HttpResponse("Post asset data to server successfully!")
else:
Expand Down

0 comments on commit e8b7579

Please sign in to comment.