Revision 085b8e24 lib/block/drbd.py

b/lib/block/drbd.py
320 320
    if meta is not None:
321 321
      retval = retval and ("meta_dev" in info and
322 322
                           info["meta_dev"] == meta.dev_path)
323
      retval = retval and ("meta_index" in info and
324
                           info["meta_index"] == 0)
323
      if "meta_index" in info:
324
        retval = retval and info["meta_index"] == 0
325 325
    else:
326 326
      retval = retval and ("meta_dev" not in info and
327 327
                           "meta_index" not in info)
......
830 830
        # no local disk, but network attached and it matches
831 831
        self._AssembleLocal(minor, self._children[0].dev_path,
832 832
                            self._children[1].dev_path, self.size)
833
        if self._MatchesNet(self._GetShowInfo(minor)):
833
        if self._MatchesLocal(self._GetShowInfo(minor)):
834 834
          break
835 835
        else:
836 836
          base.ThrowError("drbd%d: disk attach successful, but 'drbdsetup"

Also available in: Unified diff