#NEWLINE# def _get_realtime_mask( flavor , image ) : #NEWLINE# #INDENT# 'Returns realtime mask based on flavor/image meta' #NEWLINE# flavor_mask = flavor . get ( 'extra_specs' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( 'hw:cpu_realtime_mask' ) #NEWLINE# image_mask = image . properties . get ( 'hw_cpu_realtime_mask' ) #NEWLINE# return ( image_mask or flavor_mask )