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())
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')
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')
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')