]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: define exception type
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 2 Apr 2013 15:26:12 +0000 (17:26 +0200)
committerSage Weil <sage@inktank.com>
Fri, 26 Apr 2013 20:40:07 +0000 (13:40 -0700)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit 4c6d6442a89adc5b56e99cb4d2ed572f2ad192c9)

src/ceph-disk

index 740318b4ec9e3a600c5168da7f48203f61cd61c0..e0e51a91aa7a15fc844922ae8b02784a7f6f2fb7 100755 (executable)
@@ -1707,7 +1707,7 @@ def list_dev(dev, uuid_map, journal_map):
                             desc.extend(more_osd_info(tpath, uuid_map))
                     finally:
                         unmount(tpath)
-            except:
+            except MountError:
                 pass
         if desc:
             desc = ['ceph data'] + desc
@@ -1756,7 +1756,7 @@ def main_list(args):
                             journal_map[journal_uuid.lower()] = dev
                     finally:
                         unmount(tpath)
-                except:
+                except MountError:
                     pass
 
     for base, parts in sorted(partmap.iteritems()):