LGTM, thanks.
On Mon, Oct 7, 2013 at 4:37 PM, Jose A. Lopes <[email protected]> wrote: > Move constants 'instanceReboot*' to correct place according to > 'lib/constants.py'. > > Signed-off-by: Jose A. Lopes <[email protected]> > --- > src/Ganeti/HsConstants.hs | 23 ++++++++++++++--------- > 1 file changed, 14 insertions(+), 9 deletions(-) > > diff --git a/src/Ganeti/HsConstants.hs b/src/Ganeti/HsConstants.hs > index 904faa0..694779c 100644 > --- a/src/Ganeti/HsConstants.hs > +++ b/src/Ganeti/HsConstants.hs > @@ -1293,6 +1293,20 @@ esScripts = > esParametersFile :: String > esParametersFile = "parameters.list" > > +-- * Reboot types > + > +instanceRebootSoft :: String > +instanceRebootSoft = Types.rebootTypeToRaw RebootSoft > + > +instanceRebootHard :: String > +instanceRebootHard = Types.rebootTypeToRaw RebootHard > + > +instanceRebootFull :: String > +instanceRebootFull = Types.rebootTypeToRaw RebootFull > + > +rebootTypes :: FrozenSet String > +rebootTypes = ConstantUtils.mkSet $ map Types.rebootTypeToRaw [minBound..] > + > -- * Instance reboot behaviors > > instanceRebootAllowed :: String > @@ -1446,19 +1460,10 @@ ndsParameterTitles = > (ndSpindleCount, "SpindleCount")] > > > --- * Reboot types > > -instanceRebootSoft :: String > -instanceRebootSoft = Types.rebootTypeToRaw RebootSoft > > -instanceRebootHard :: String > -instanceRebootHard = Types.rebootTypeToRaw RebootHard > > -instanceRebootFull :: String > -instanceRebootFull = Types.rebootTypeToRaw RebootFull > > -rebootTypes :: FrozenSet String > -rebootTypes = ConstantUtils.mkSet $ map Types.rebootTypeToRaw [minBound..] > > -- * OOB supported commands > > -- > 1.8.4 > > -- Thomas Thrainer | Software Engineer | [email protected] | 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
