backend.DemoteFromMC: don't fail for missing files
authorIustin Pop <iustin@google.com>
Tue, 30 Jun 2009 15:59:29 +0000 (17:59 +0200)
committerIustin Pop <iustin@google.com>
Tue, 30 Jun 2009 16:33:04 +0000 (18:33 +0200)
commit9a5cb537d1ae71cbdb572adbc53c3163b85ded53
treee97e6895a5cec321da42bfbd9d42abf8a31f4aec
parent23f06b2baac612eb67ebdeeb5a4d75fcbee2a57f
backend.DemoteFromMC: don't fail for missing files

If the config file is missing when the DemoteFromMC() function is
called, it will raise a ProgrammerError. Instead of changing the
utils.CreateBackup() file which is called from multiple places, for now
we only change the DemoteFromMC() function to not call it if the file is
not existing (we rely on the master to prevent race conditions here).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Olivier Tharan <olive@google.com>
lib/backend.py