Exemplo n.º 1
0
 def _is_volume_containing_snaps(self, label):
     """Checks if volume contains snapshot groups."""
     vol_id = utils.convert_es_fmt_to_uuid(label)
     for snap in self._client.list_snapshot_groups():
         if snap["baseVolume"] == vol_id:
             return True
     return False
Exemplo n.º 2
0
 def _is_volume_containing_snaps(self, label):
     """Checks if volume contains snapshot groups."""
     vol_id = utils.convert_es_fmt_to_uuid(label)
     for snap in self._client.list_snapshot_groups():
         if snap['baseVolume'] == vol_id:
             return True
     return False
Exemplo n.º 3
0
 def test_convert_es_fmt_to_uuid(self):
     value = '4Z7JGGVS5VEJBE4LHLGGUUL7VQ'
     result = six.text_type(utils.convert_es_fmt_to_uuid(value))
     self.assertEqual('e67e931a-b2ed-4890-938b-3acc6a517fac', result)
Exemplo n.º 4
0
 def test_convert_es_fmt_to_uuid(self):
     value = '4Z7JGGVS5VEJBE4LHLGGUUL7VQ'
     result = six.text_type(utils.convert_es_fmt_to_uuid(value))
     self.assertEqual('e67e931a-b2ed-4890-938b-3acc6a517fac', result)