def make_image(location, size, fmt):
 if (not os.path.isabs(location)):
  return ''
 if (not os.path.isdir(os.path.dirname(location))):
  return ''
 if (not __salt__['cmd.retcode']('qemu-img create -f {0} {1} {2}M'.format(fmt, location, size), python_shell=False)):
  return location
 return ''

def make_image ( location , size , fmt ) : if ( not os . path . isabs ( location ) ) : return '' if ( not os . path . isdir ( os . path . dirname ( location ) ) ) : return '' if ( not __salt__ [ 'cmd.retcode' ] ( 'qemu-img create -f {0} {1} {2}M' . format ( fmt , location , size ) , python_shell = False ) ) : return location return ''
create a blank virtual machine image file of the specified size in megabytes .