Remove symlink if exists 82/9482/1 v7.0
authorbeierlm <mark.beierl@canonical.com>
Wed, 8 Jul 2020 20:32:50 +0000 (16:32 -0400)
committerbeierlm <mark.beierl@canonical.com>
Mon, 20 Jul 2020 13:49:48 +0000 (15:49 +0200)
commit982607933dbc0afda65341a6072953c91d4e937b
tree4bbad57686384c34d0bae929daba2d693cc664ee
parentf47e6cf96dab96593a5962e6c765a89d51d918da
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)
(cherry picked from commit ff2e826ee2ead832eff974e331aed3994e9b06f9)
osm_common/fsmongo.py