Module Expr Str Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BoolOpOr NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr For NameStore TupleLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr orelse If CompareIn NameLoad ListLoad Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr orelse If CompareEq NameLoad Str body If BoolOpOr UnaryOpNot NameLoad UnaryOpNot Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Assign NameStore Call NameLoad Str Raise Call NameLoad NameLoad Delete SubscriptDel NameLoad Index Num Assign NameStore ListLoad While NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq Call NameLoad NameLoad Num body Break Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str If CompareNotEq Call NameLoad NameLoad Num body Break Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpAdd BinOpAdd SubscriptLoad NameLoad Index Num Str SubscriptLoad NameLoad Index Num Delete SubscriptDel NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Continue Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
Helper methods to deal with images.
 N/A re rack.openstack.common.gettextutils _ rack.openstack.common strutils QemuImgInfo N/A object N/A N/A BACKING_FILE_RE N/A N/A re compile ^(.*?)\s*\(actual\s+path\s*:\s+(.*?)\)\s*$ N/A re I N/A TOP_LEVEL_RE N/A N/A re compile ^([\w\d\s\_\-]+):(.*)$ N/A SIZE_RE N/A N/A re compile \(\s*(\d+)\s+bytes\s*\) N/A re I __init__ N/A N/A self cmd_output N/A None N/A N/A details N/A N/A self _parse N/A cmd_output N/A N/A self image N/A N/A details get image N/A N/A self backing_file N/A N/A details get backing_file N/A N/A self file_format N/A N/A details get file_format N/A N/A self virtual_size N/A N/A details get virtual_size N/A N/A self cluster_size N/A N/A details get cluster_size N/A N/A self disk_size N/A N/A details get disk_size N/A N/A self snapshots N/A N/A details get snapshot_list N/A N/A N/A self encryption N/A N/A details get encryption N/A __str__ N/A N/A self N/A N/A N/A lines N/A N/A image: %s N/A self image N/A file_format: %s N/A self file_format N/A virtual_size: %s N/A self virtual_size N/A disk_size: %s N/A self disk_size N/A cluster_size: %s N/A self cluster_size N/A backing_file: %s N/A self backing_file N/A N/A self snapshots N/A N/A N/A N/A lines append N/A snapshots: %s N/A self snapshots N/A N/A N/A join lines N/A _canonicalize N/A N/A self field N/A N/A N/A field N/A N/A N/A N/A field lower strip N/A c N/A - N/A N/A field N/A N/A field replace c _ N/A field N/A _extract_bytes N/A N/A self details N/A N/A N/A real_size N/A N/A N/A self SIZE_RE search details N/A real_size N/A N/A details N/A N/A real_size group 1 N/A N/A N/A details N/A N/A strutils to_bytes details N/A N/A N/A TypeError N/A N/A N/A details N/A _extract_details N/A N/A self root_cmd root_details lines_after N/A N/A N/A real_details root_details N/A N/A root_cmd backing_file N/A N/A backing_match N/A N/A N/A self BACKING_FILE_RE match root_details N/A backing_match N/A N/A real_details N/A N/A N/A N/A backing_match group 2 strip N/A N/A N/A root_cmd N/A virtual_size cluster_size disk_size N/A N/A real_details N/A N/A self _extract_bytes root_details N/A N/A N/A root_cmd file_format N/A N/A real_details N/A N/A N/A N/A real_details strip lower N/A N/A N/A root_cmd snapshot_list N/A N/A N/A N/A lines_after N/A N/A N/A N/A lines_after N/A 0 startswith ID N/A N/A msg N/A _ Snapshot list encountered but no header found! N/A N/A ValueError msg N/A N/A lines_after N/A 0 N/A real_details N/A N/A lines_after N/A N/A line N/A lines_after N/A 0 N/A line_pieces N/A N/A line split N/A N/A N/A len line_pieces 6 N/A N/A N/A date_pieces N/A N/A N/A line_pieces N/A 5 split : N/A N/A N/A len date_pieces 3 N/A N/A N/A N/A N/A real_details append N/A id tag vm_size date vm_clock N/A line_pieces N/A 0 N/A line_pieces N/A 1 N/A line_pieces N/A 2 N/A line_pieces N/A 3 N/A N/A N/A line_pieces N/A 4 N/A line_pieces N/A 5 N/A N/A lines_after N/A 0 N/A real_details N/A _parse N/A N/A self cmd_output N/A N/A N/A contents N/A N/A lines N/A x N/A x N/A N/A cmd_output splitlines N/A N/A x strip N/A lines N/A N/A line N/A N/A lines pop 0 N/A top_level N/A N/A N/A self TOP_LEVEL_RE match line N/A top_level N/A N/A root N/A N/A self _canonicalize N/A N/A top_level group 1 N/A N/A root N/A N/A N/A root_details N/A N/A N/A N/A top_level group 2 strip N/A details N/A N/A self _extract_details root root_details lines N/A N/A contents N/A root details N/A contents N/A N/A