示例#1
0
 def clear_total_vm_size(cls, vm):
     return clear_cached_size(cls.SNAPSHOT_SIZE_TOTAL_VM_KEY %
                              getattr(vm, 'uuid', vm))
示例#2
0
 def clear_total_dc_size(cls, dc):
     return clear_cached_size(cls.SNAPSHOT_SIZE_TOTAL_DC_KEY %
                              getattr(dc, 'id', dc))