def set_base_image_properties(properties=None):
 if (isinstance(properties, dict) and (len(properties) == 0)):
  properties['disk_format'] = 'qcow2'
  properties['container_format'] = 'bare'

def set_base_image_properties ( properties = None ) : if ( isinstance ( properties , dict ) and ( len ( properties ) == 0 ) ) : properties [ 'disk_format' ] = 'qcow2' properties [ 'container_format' ] = 'bare'
sets optional base properties for creating image .