Fix cfgupgrade with non-default DATA_DIR
authorIustin Pop <iustin@google.com>
Tue, 13 Apr 2010 12:24:19 +0000 (14:24 +0200)
committerIustin Pop <iustin@google.com>
Thu, 15 Apr 2010 14:36:08 +0000 (16:36 +0200)
commitaeefe835be955a154e5d02b354d5e229201fdf5c
tree47a8c48603b1d86918508e661214808dfce7ea3d
parent88394aa7ea038deb71b44ffcdd4c4b166fcbff32
Fix cfgupgrade with non-default DATA_DIR

Commit 43575108 added bootstrap.GenerateclusterCrypto and commit
7506a7f1 changed cfgupgrade to use it. However, this lost the
functionality of upgrading in non-default DATA_DIR.

To fix this, we enhance bootstrap.GenerateclusterCrypto to accept custom
file paths for the three files it modifies. If more files will be needed
in the future, we could just pass in modified DATA_DIR, but for now it
suffices.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
lib/bootstrap.py
tools/cfgupgrade