Home
last modified time | relevance | path

Searched refs:db_attachment (Results 1 – 3 of 3) sorted by relevance

/dports/misc/py-cinder/cinder-12.0.10/cinder/tests/unit/objects/
H A Dtest_volume_attachment.py33 db_attachment = fake_volume.volume_attachment_db_obj()
35 volume_attachment_get.return_value = db_attachment
186 db_attachment = fake_volume.volume_attachment_db_obj()
187 get_used_by_volume_id.return_value = [db_attachment]
198 db_attachment = fake_volume.volume_attachment_db_obj()
200 get_by_host.return_value = [db_attachment]
209 db_attachment = fake_volume.volume_attachment_db_obj()
210 get_by_instance_uuid.return_value = [db_attachment]
H A Dtest_volume.py453 db_attachment = fake_volume.volume_attachment_db_obj(
456 volume_attach.return_value = db_attachment
/dports/misc/py-cinder/cinder-12.0.10/cinder/objects/
H A Dvolume_attachment.py81 def _from_db_object(cls, context, attachment, db_attachment, argument
89 value = db_attachment.get(name)
105 if 'volume' in expected_attrs and 'volume' in vars(db_attachment):
106 db_volume = db_attachment.volume
193 db_attachment = db.volume_attach(self._context, updates)
194 self._from_db_object(self._context, self, db_attachment)