self.encryption_metadata = encryption.legacy_encrypted(args.osd_path)
self.is_encrypted = self.encryption_metadata['encrypted']
- device = Device(self.encryption_metadata['device'])
- if not device.is_ceph_disk_member:
- terminal.warning("Ignoring %s because it's not a ceph-disk created osd." % path)
+ if self.encryption_metadata['device'] != "tmpfs":
+ device = Device(self.encryption_metadata['device'])
+ if not device.is_ceph_disk_member:
+ terminal.warning("Ignoring %s because it's not a ceph-disk created osd." % path)
+ else:
+ self.scan(args)
else:
- self.scan(args)
+ terminal.warning("Ignoring %s because it's not a ceph-disk created osd." % path)