Use add/remove instead of replace in rootpw plugin

This commit is contained in:
Anders Ingemann 2013-10-06 14:06:32 +02:00
parent 38bcb12c72
commit aa91bc701f

View file

@ -3,7 +3,8 @@
def tasks(tasklist, manifest): def tasks(tasklist, manifest):
from common.tasks.security import DisableSSHPasswordAuthentication from common.tasks.security import DisableSSHPasswordAuthentication
from tasks import SetRootPassword from tasks import SetRootPassword
tasklist.replace(DisableSSHPasswordAuthentication, SetRootPassword) tasklist.remove(DisableSSHPasswordAuthentication)
tasklist.add(SetRootPassword)
def validate_manifest(data, schema_validate): def validate_manifest(data, schema_validate):