Remove physical_id from config mock
authorThomas Thrainer <thomasth@google.com>
Thu, 19 Sep 2013 12:00:42 +0000 (14:00 +0200)
committerThomas Thrainer <thomasth@google.com>
Tue, 24 Sep 2013 06:17:25 +0000 (08:17 +0200)
Disk objects no longer support the physical_id field, so remove it from
mocked disk objects.

Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Jose A. Lopes <jabolopes@google.com>

test/py/cmdlib/testsupport/config_mock.py

index 18b5c05..3c8812d 100644 (file)
@@ -347,7 +347,6 @@ class ConfigMock(config.ConfigWriter):
                  name=None,
                  dev_type=constants.DT_PLAIN,
                  logical_id=None,
-                 physical_id=None,
                  children=None,
                  iv_name=None,
                  size=1024,
@@ -420,7 +419,6 @@ class ConfigMock(config.ConfigWriter):
                         name=name,
                         dev_type=dev_type,
                         logical_id=logical_id,
-                        physical_id=physical_id,
                         children=children,
                         iv_name=iv_name,
                         size=size,