pull/6/head
halcyon 2015-03-17 14:12:49 +08:00
parent 9e1dd270ae
commit a36c8599e7
1 changed files with 1 additions and 2 deletions

View File

@ -38,11 +38,10 @@ def f_add_host(ip, port, idc, jtype, group, dept, active, comment, username='',
a.save()
all_group = BisGroup.objects.get(name='ALL')
private_group = BisGroup.objects.get(name=ip.strip())
for g in group:
c = BisGroup.objects.get(name=g)
groups.append(c)
groups.extend([all_group, private_group])
groups.extend(all_group)
for d in dept:
p = DEPT.objects.get(name=d)