Skip to content

Commit

Permalink
One-time hosts now have their protection levels set to "Do not repair".
Browse files Browse the repository at this point in the history
Risk: low
Visbility: medium (host creation behavior change)

Signed-off-by: James Ren <[email protected]>
  • Loading branch information
James Ren committed Jul 30, 2008
1 parent a98d7a0 commit 527c7ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/afe/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def create_one_time_host(hostname):
host.clean_object()
AclGroup.objects.get(name='Everyone').hosts.add(host)
host.status = Host.Status.READY
host.protection = host_protections.Protection.DO_NOT_REPAIR
host.save()
return host

Expand Down

0 comments on commit 527c7ca

Please sign in to comment.