On 12/02/2014 03:32 PM, 'Klaus Aehlig' via ganeti-devel wrote:
Add a new parameter to be used in OpCodes signalling
that the instance to be created is already present
as a reserved instance and should now be committed.
Signed-off-by: Klaus Aehlig <[email protected]>
---
src/Ganeti/OpParams.hs | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/Ganeti/OpParams.hs b/src/Ganeti/OpParams.hs
index 4c2879e..cb8bfb3 100644
--- a/src/Ganeti/OpParams.hs
+++ b/src/Ganeti/OpParams.hs
@@ -205,6 +205,7 @@ module Ganeti.OpParams
, pSrcPath
, pStartInstance
, pForthcoming
+ , pCommit
, pInstTags
, pMultiAllocInstances
, pTempOsParams
@@ -1280,6 +1281,11 @@ pForthcoming =
withDoc "Whether to only reserve resources" $
defaultFalse "forthcoming"
+pCommit :: Field
+pCommit =
+ withDoc "Commit the already reserved instance" $
+ defaultFalse "commit"
+
-- FIXME: unify/simplify with pTags, once that migrates to NonEmpty String"
pInstTags :: Field
pInstTags =
LGTM
--
Niklas Hambüchen
Google Germany GmbH, Dienerstr. 12, 80331 Muenchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschaeftsfuehrer: Graham Law, Christine Elizabeth Flores