Remove symlink if exists 71/9371/1
authorbeierlm <mark.beierl@canonical.com>
Wed, 8 Jul 2020 20:32:50 +0000 (16:32 -0400)
committerbeierlm <mark.beierl@canonical.com>
Wed, 8 Jul 2020 20:57:18 +0000 (22:57 +0200)
commitff2e826ee2ead832eff974e331aed3994e9b06f9
tree83f031b83254f9a05bc3cfc54ef4640f8fd105b8
parenta8747992fc5a037c060b43d655a1be059ce6fae9
Remove symlink if exists

On sync, if the symlink already exists, an exception would
be thrown.  This change removes the file if it already
exists.

Bug 1132

Change-Id: I151a96adcac5d7cd51b84c2770f498a78d7d68be
Signed-off-by: beierlm <mark.beierl@canonical.com>
(cherry picked from commit 6d72d5cfb6f75c62402d493fdc2d81797cd48081)
osm_common/fsmongo.py