From: Mark Huang Date: Mon, 25 Sep 2006 14:48:07 +0000 (+0000) Subject: - support new schema X-Git-Tag: pycurl-7_13_1~716 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a033d0a910d6b3d5219ed9eb2d2a578f7c9e9c73;p=plcapi.git - support new schema --- diff --git a/PLC/BootStates.py b/PLC/BootStates.py index 2cc0b22..fcfcd46 100644 --- a/PLC/BootStates.py +++ b/PLC/BootStates.py @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id$ +# $Id: BootStates.py,v 1.1 2006/09/06 15:36:06 mlhuang Exp $ # from PLC.Parameter import Parameter @@ -19,7 +19,7 @@ class BootStates(list): } def __init__(self, api): - sql = "SELECT * FROM node_bootstates" + sql = "SELECT * FROM boot_states" for row in api.db.selectall(sql): self.append(row['boot_state'])