LGTM. Thanks, Jose
On Wed, Oct 02, 2013 at 02:33:04PM +0200, Klaus Aehlig wrote: > Ganeti's ssconf contains the list of nodes currently considered > online. Expose this data at the ssconf interface. > > Signed-off-by: Klaus Aehlig <[email protected]> > --- > lib/ssconf.py | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/lib/ssconf.py b/lib/ssconf.py > index 11af2a2..a027ab5 100644 > --- a/lib/ssconf.py > +++ b/lib/ssconf.py > @@ -273,6 +273,14 @@ class SimpleStore(object): > nl = data.splitlines(False) > return nl > > + def GetOnlineNodeList(self): > + """Return the list of online cluster nodes. > + > + """ > + data = self._ReadFile(constants.SS_ONLINE_NODES) > + nl = data.splitlines(False) > + return nl > + > def GetNodePrimaryIPList(self): > """Return the list of cluster nodes' primary IP. > > -- > 1.8.4 > -- Jose Antonio Lopes Ganeti Engineering Google Germany GmbH Dienerstr. 12, 80331, München Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschäftsführer: Graham Law, Christine Elizabeth Flores Steuernummer: 48/725/00206 Umsatzsteueridentifikationsnummer: DE813741370
