Repository URL to install this package:
Version:
3.4.51 ▾
|
ó ±EYc @ s³ d d l m Z d d l m Z d Z d Z d Z e e e g Z d e f d YZ d e f d YZ d e f d YZ d e f d YZ d e f d YZ d S( iÿÿÿÿ( t strutils( t exceptiont rawt qcow2t ploopt Imagec B s2 e Z d Z d Z d Z d Z d Z RS( s Base class for all image types. All image types have a format, though for many of them only a subset of formats will commonly be used. For example, block devices are almost always going to be FORMAT_RAW. Though it is in fact possible from a technical POV to store a qcow2 data inside a block device, Nova does not (at this time) make use of such possibilities. c C sA t t | j | | _ | t k r= t j d | n d S( sX Create a new abstract image :param format: one of the format constants t formatN( t superR t __init__R t ALL_FORMATSR t InvalidImageFormat( t selfR ( ( sJ /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/image/model.pyR , s c C s2 d | j j d t | j d } t j | S( Nt <t :t >( t __class__t __name__t strt __dict__R t mask_password( R t msg( ( sJ /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/image/model.pyt __repr__8 s %c C s" | j | j k o! | j | j k S( N( R R ( R t other( ( sJ /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/image/model.pyt __eq__<