def verify(zone):
    '''
    Check to make sure the configuration of the specified
    zone can safely be installed on the machine.

    zone : string
        name of the zone

    CLI Example:

    .. code-block:: bash

        salt '*' zoneadm.verify dolores
    '''
    ret = {'status': True}

    ## verify zone
    res = __salt__['cmd.run_all']('zoneadm -z {zone} verify'.format(
        zone=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 verify ( zone ) : ret = { 'status' : True } res = __salt__ [ 'cmd.run_all' ] ( 'zoneadm -z {zone} verify' . format ( zone = 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
Check to make sure the configuration of the specified
    zone can safely be installed on the machine.

    zone : string
        name of the zone

    CLI Example:

    .. code-block:: bash

        salt '*' zoneadm.verify dolores