From 043a3929f04a05e4074c63f5122f011ee5d628cc Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Sun, 3 Jul 2011 00:08:00 +0200
Subject: [PATCH] htools: remove obsolete option INodes

hspace no longer uses it, hence it can be removed.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 htools/Ganeti/HTools/CLI.hs | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/htools/Ganeti/HTools/CLI.hs b/htools/Ganeti/HTools/CLI.hs
index 01bf935e0..7d561aefb 100644
--- a/htools/Ganeti/HTools/CLI.hs
+++ b/htools/Ganeti/HTools/CLI.hs
@@ -47,7 +47,6 @@ module Ganeti.HTools.CLI
     , oGroup
     , oIDisk
     , oIMem
-    , oINodes
     , oIVcpus
     , oInstMoves
     , oLuxiSocket
@@ -113,7 +112,6 @@ data Options = Options
     , optExecJobs    :: Bool           -- ^ Execute the commands via Luxi
     , optGroup       :: Maybe GroupID  -- ^ The UUID of the group to process
     , optSelInst     :: [String]       -- ^ Instances to be excluded
-    , optINodes      :: Int            -- ^ Nodes required for an instance
     , optISpec       :: RSpec          -- ^ Requested instance specs
     , optLuxi        :: Maybe FilePath -- ^ Collect data from Luxi
     , optMaster      :: String         -- ^ Collect data from RAPI
@@ -153,7 +151,6 @@ defaultOptions  = Options
  , optExecJobs    = False
  , optGroup       = Nothing
  , optSelInst     = []
- , optINodes      = 2
  , optISpec       = RSpec 1 4096 102400
  , optLuxi        = Nothing
  , optMaster      = ""
@@ -262,11 +259,6 @@ oIMem = Option "" ["memory"]
                      in Ok opts { optISpec = nspec }) "MEMORY")
         "memory size for instances"
 
-oINodes :: OptType
-oINodes = Option "" ["req-nodes"]
-          (ReqArg (\ n opts -> Ok opts { optINodes = read n }) "NODES")
-          "number of nodes for the new instances (1=plain, 2=mirrored)"
-
 oIVcpus :: OptType
 oIVcpus = Option "" ["vcpus"]
           (ReqArg (\ p opts ->
-- 
GitLab