def ready(zone):
 ret = {'status': True}
 res = __salt__['cmd.run_all']('zoneadm {zone} ready'.format(zone=('-u {0}'.format(zone) if _is_uuid(zone) else '-z {0}'.format(zone))))
 ret['status'] = (res['retcode'] == 0)
 ret['message'] = (res['stdout'] if ret['status'] else res['stderr'])
 ret['message'] = ret['message'].replace('zoneadm: ', '')
 if (ret['message'] == ''):
  del ret['message']
 return ret

def ready ( zone ) : ret = { 'status' : True } res = __salt__ [ 'cmd.run_all' ] ( 'zoneadm {zone} ready' . format ( zone = ( '-u {0}' . format ( zone ) if _is_uuid ( zone ) else '-z {0}' . format ( zone ) ) ) ) ret [ 'status' ] = ( res [ 'retcode' ] == 0 ) ret [ 'message' ] = ( res [ 'stdout' ] if ret [ 'status' ] else res [ 'stderr' ] ) ret [ 'message' ] = ret [ 'message' ] . replace ( 'zoneadm: ' , '' ) if ( ret [ 'message' ] == '' ) : del ret [ 'message' ] return ret
prepares a zone for running applications .