Revision f9518d38 lib/bdev.py
b/lib/bdev.py | ||
---|---|---|
804 | 804 |
|
805 | 805 |
if len(children) not in (0, 2): |
806 | 806 |
raise ValueError("Invalid configuration data %s" % str(children)) |
807 |
if not isinstance(unique_id, (tuple, list)) or len(unique_id) != 5:
|
|
807 |
if not isinstance(unique_id, (tuple, list)) or len(unique_id) != 6:
|
|
808 | 808 |
raise ValueError("Invalid configuration data %s" % str(unique_id)) |
809 | 809 |
(self._lhost, self._lport, |
810 | 810 |
self._rhost, self._rport, |
811 |
self._aminor) = unique_id |
|
811 |
self._aminor, self._secret) = unique_id
|
|
812 | 812 |
if (self._lhost is not None and self._lhost == self._rhost and |
813 | 813 |
self._lport == self._rport): |
814 | 814 |
raise ValueError("Invalid configuration data, same local/remote %s" % |
Also available in: Unified diff