Skip to content

Commit

Permalink
ceph-volume util.encryption if crypt path does not exist, skip it
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 635f8e9)
  • Loading branch information
Alfredo Deza authored and andrewschoen committed Aug 28, 2018
1 parent 807c577 commit 4654d13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ceph-volume/ceph_volume/util/encryption.py
Expand Up @@ -96,6 +96,10 @@ def dmcrypt_close(mapping):
:param mapping:
"""
if not os.path.exists(mapping):
logger.debug('device mapper path does not exist %s' % mapping)
logger.debug('will skip cryptsetup removal')
return
process.run(['cryptsetup', 'remove', mapping])


Expand Down

0 comments on commit 4654d13

Please sign in to comment.