예제 #1
0
def checkconfig():
    '''
    returns the display of lxc-checkconfig command
    '''
    if session['su'] != 'Yes':
        return abort(403)

    return render_template('checkconfig.html', containers=lxc.ls(), cfg=lxc.checkconfig())
예제 #2
0
def checkconfig():
    '''
    returns the display of lxc-checkconfig command
    '''
    if 'logged_in' in session:
        if session['su'] != 'Yes':
            return abort(403)

        return render_template('checkconfig.html', containers=lxc.ls(),
                               cfg=lxc.checkconfig())
    return render_template('login.html')
예제 #3
0
파일: lwp.py 프로젝트: grimpy/LXC-Web-Panel
def checkconfig():
    '''
    returns the display of lxc-checkconfig command
    '''
    if 'logged_in' in session:
        if session['su'] != 'Yes':
            return abort(403)

        return render_template('checkconfig.html', containers=lxc.list_containers(),
                               cfg=lxclite.checkconfig())
    return render_template('login.html')
예제 #4
0
def checkconfig():
    if 'logged_in' in session:
        if session['su'] != 'Yes': return abort(403)
        return render_template('checkconfig.html', containers=lwp.ls(), cfg=lxc.checkconfig())
    return render_template('login.html')