Skip to content
Permalink
Browse files

Exit Linux fs resource realdev() early if self.device is None

Which avoids print errors on pushdisks for lazy devices (refs to a down
resources for example).
  • Loading branch information...
cvaroqui committed Jul 30, 2019
1 parent 1cc1aee commit 1b316002fae426b11905d268f3ecb38685bdb934
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/resFsLinux.py
@@ -215,6 +215,8 @@ def is_up(self):
def realdev(self):
if self.fs_type in ("none", "tmpfs", "bind"):
return
if self.device is None:
return
if self.device.startswith("LABEL=") or self.device.startswith("UUID="):
try:
_dev = label_to_dev(self.device, self.svc.node.devtree)

0 comments on commit 1b31600

Please sign in to comment.
You can’t perform that action at this time.