Esempio n. 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())
Esempio n. 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')
Esempio n. 3
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.list_containers(),
                               cfg=lxclite.checkconfig())
    return render_template('login.html')
Esempio n. 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')